org.hibernate.search.impl
Class ConfigContext

java.lang.Object
  extended by 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.

Author:
Emmanuel Bernard, Hardy Ferentschik

Constructor Summary
ConfigContext(SearchConfiguration cfg)
           
 
Method Summary
 void addAnalyzerDef(AnalyzerDef analyzerDef, org.hibernate.annotations.common.reflection.XAnnotatedElement annotatedElement)
          Add an analyzer definition which was defined as annotation.
 void addFacetFieldName(String facetFieldName)
          Add a facet field name.
 void addGlobalAnalyzerDef(AnalyzerDef analyzerDef)
           
 org.apache.lucene.analysis.Analyzer buildLazyAnalyzer(String name)
           
 org.apache.lucene.analysis.Analyzer getDefaultAnalyzer()
           
 String getDefaultNullToken()
           
 org.apache.lucene.search.Similarity getDefaultSimilarity()
           
 Collection<String> getFacetFieldNames()
           
 List<DelegateNamedAnalyzer> getLazyAnalyzers()
           
 org.apache.lucene.util.Version getLuceneMatchVersion()
           
 Map<String,org.apache.lucene.analysis.Analyzer> initLazyAnalyzers()
           
 boolean isJpaPresent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigContext

public ConfigContext(SearchConfiguration cfg)
Method Detail

addAnalyzerDef

public void addAnalyzerDef(AnalyzerDef analyzerDef,
                           org.hibernate.annotations.common.reflection.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 org.apache.lucene.analysis.Analyzer buildLazyAnalyzer(String name)

getLazyAnalyzers

public List<DelegateNamedAnalyzer> getLazyAnalyzers()

getDefaultNullToken

public String getDefaultNullToken()

getDefaultAnalyzer

public org.apache.lucene.analysis.Analyzer getDefaultAnalyzer()

getDefaultSimilarity

public org.apache.lucene.search.Similarity getDefaultSimilarity()

getLuceneMatchVersion

public org.apache.lucene.util.Version getLuceneMatchVersion()

initLazyAnalyzers

public Map<String,org.apache.lucene.analysis.Analyzer> initLazyAnalyzers()

isJpaPresent

public boolean isJpaPresent()


Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved