Class ConfigContext

java.lang.Object
org.hibernate.search.impl.ConfigContext

public final class ConfigContext extends Object
Provides access to some default configuration settings (eg default Analyzer or default Similarity) and checks whether certain optional libraries are available.
  • Constructor Details

  • Method Details

    • addAnalyzerDef

      public void addAnalyzerDef(AnalyzerDef analyzerDef, XAnnotatedElement annotatedElement)
      Add an analyzer definition which was defined as annotation.
      Parameters:
      analyzerDef - the analyzer definition annotation
      annotatedElement - the annotated element it was defined on
    • addFacetFieldName

      public void addFacetFieldName(String facetFieldName)
      Add a facet field name.
      Parameters:
      facetFieldName - the name of the faceted field
    • getFacetFieldNames

      public Collection<String> getFacetFieldNames()
    • addGlobalAnalyzerDef

      public void addGlobalAnalyzerDef(AnalyzerDef analyzerDef)
    • buildLazyAnalyzer

      public Analyzer buildLazyAnalyzer(String name)
    • getLazyAnalyzers

      public List<DelegateNamedAnalyzer> getLazyAnalyzers()
    • getDefaultNullToken

      public String getDefaultNullToken()
    • getDefaultAnalyzer

      public Analyzer getDefaultAnalyzer()
    • getDefaultSimilarity

      public Similarity getDefaultSimilarity()
    • getLuceneMatchVersion

      public Version getLuceneMatchVersion()
    • initLazyAnalyzers

      public Map<String,Analyzer> initLazyAnalyzers()
    • isJpaPresent

      public boolean isJpaPresent()