Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hibernate.search.query.dsl.v2
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.

Author:
  Emmanuel Bernard

Method Summary
`EntityContext` | `forEntity(java.lang.Class<?> entityType)`

Method Detail

### forEntity

    EntityContext forEntity(java.lang.Class<?> entityType)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2010 Hibernate. All Rights Reserved.