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.Analyzer getAnalyzer​(org.hibernate.search.spi.SearchIntegrator searchIntegrator, TypeMetadata typeMetadata, String[] propertyPath)
      Get the analyzer to be used for a property.
      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.
      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.
    • 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; never null
        propertyPath - an array of strings denoting the property path; never null
        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 query
        entityContext - the entity context to populate