org.hibernate.search.impl
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.
- Author:
- Emmanuel Bernard, Hardy Ferentschik
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigContext
public ConfigContext(SearchConfiguration cfg)
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 annotationannotatedElement
- 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