Interface QueryContextBuilder

All Known Implementing Classes:
ConnectedQueryContextBuilder

public interface QueryContextBuilder
Query builder that needs contextualization: A query builder should know which entity or analyzer it relies on. QueryBuilder builder = searchFactory.buildQueryBuilder() .forEntity(Customer.class) .overridesForField("profession", "acronym-analyzer") .get(); overridesForField is optional (and usually not needed). This method overrides the underlying analyzer (for a given field) used to build queries.
  • Method Summary

    Modifier and Type
    Method
    Description
    forEntity(Class<?> entityType)