|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.search.impl.ConfigContext
public final class ConfigContext
Provides access to some default configuration settings (eg default Analyzer or default
Similarity) and checks whether certain optional libraries are available.
| Constructor Summary | |
|---|---|
ConfigContext(SearchConfiguration cfg)
|
|
ConfigContext(SearchConfiguration cfg,
SearchMapping searchMapping)
|
|
| 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)
|
Map<FieldBridge,ClassBridge> |
getClassBridgeInstances(Class<?> type)
Returns class bridge instances configured via the programmatic API, if any. |
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()
|
boolean |
isProvidedIdImplicit()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigContext(SearchConfiguration cfg)
public ConfigContext(SearchConfiguration cfg,
SearchMapping searchMapping)
| Method Detail |
|---|
public void addAnalyzerDef(AnalyzerDef analyzerDef,
org.hibernate.annotations.common.reflection.XAnnotatedElement annotatedElement)
analyzerDef - the analyzer definition annotationannotatedElement - the annotated element it was defined onpublic void addFacetFieldName(String facetFieldName)
facetFieldName - the name of the faceted fieldpublic Collection<String> getFacetFieldNames()
public void addGlobalAnalyzerDef(AnalyzerDef analyzerDef)
public org.apache.lucene.analysis.Analyzer buildLazyAnalyzer(String name)
public List<DelegateNamedAnalyzer> getLazyAnalyzers()
public String getDefaultNullToken()
public org.apache.lucene.analysis.Analyzer getDefaultAnalyzer()
public org.apache.lucene.search.Similarity getDefaultSimilarity()
public org.apache.lucene.util.Version getLuceneMatchVersion()
public Map<String,org.apache.lucene.analysis.Analyzer> initLazyAnalyzers()
public boolean isJpaPresent()
public boolean isProvidedIdImplicit()
public Map<FieldBridge,ClassBridge> getClassBridgeInstances(Class<?> type)
@ClassBridge annotations representing the corresponding analyzer etc. configuration.
type - the type for which to return the configured class bridge instances
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||