Interface LuceneQueryMaker.FieldBridgeAndAnalyzerProvider<TypeMetadata>
-
- Enclosing class:
- LuceneQueryMaker<TypeMetadata>
public static interface LuceneQueryMaker.FieldBridgeAndAnalyzerProvider<TypeMetadata>This provides some glue code for Hibernate Search. Implementations are different for embedded and remote use case.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.lucene.analysis.AnalyzergetAnalyzer(org.hibernate.search.spi.SearchIntegrator searchIntegrator, TypeMetadata typeMetadata, String[] propertyPath)Get the analyzer to be used for a property.org.hibernate.search.bridge.FieldBridgegetFieldBridge(TypeMetadata typeMetadata, String[] propertyPath)Returns the field bridge to be applied when executing queries on the given property of the given entity type.voidoverrideAnalyzers(org.infinispan.objectfilter.impl.syntax.parser.IckleParsingResult<TypeMetadata> parsingResult, org.hibernate.search.query.dsl.EntityContext entityContext)Populate the EntityContext with the analyzers that will be used for properties.
-
-
-
Method Detail
-
getFieldBridge
org.hibernate.search.bridge.FieldBridge getFieldBridge(TypeMetadata typeMetadata, String[] propertyPath)
Returns the field bridge to be applied when executing queries on the given property of the given entity type.- Parameters:
typeMetadata- the entity type hosting the given property; may either identify an actual Java type or a virtual type managed by the given implementation; nevernullpropertyPath- an array of strings denoting the property path; nevernull- Returns:
- the field bridge to be used for querying the given property; may be
null
-
getAnalyzer
org.apache.lucene.analysis.Analyzer getAnalyzer(org.hibernate.search.spi.SearchIntegrator searchIntegrator, TypeMetadata typeMetadata, String[] propertyPath)Get the analyzer to be used for a property.
-
overrideAnalyzers
void overrideAnalyzers(org.infinispan.objectfilter.impl.syntax.parser.IckleParsingResult<TypeMetadata> parsingResult, org.hibernate.search.query.dsl.EntityContext entityContext)
Populate the EntityContext with the analyzers that will be used for properties.- Parameters:
parsingResult- the parsed queryentityContext- the entity context to populate
-
-