org.hibernate.search.impl
public final class ConfigContext extends Object
Analyzer
or default
Similarity
) and checks whether certain optional libraries are available.Constructor and Description |
---|
ConfigContext(SearchConfiguration cfg) |
ConfigContext(SearchConfiguration cfg,
SearchMapping searchMapping) |
Modifier and Type | Method and Description |
---|---|
void |
addAnalyzerDef(AnalyzerDef analyzerDef,
org.hibernate.annotations.common.reflection.XAnnotatedElement annotatedElement)
Add an analyzer definition which was defined as annotation.
|
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.util.Version |
getLuceneMatchVersion() |
Map<String,org.apache.lucene.analysis.Analyzer> |
initLazyAnalyzers() |
boolean |
isJpaPresent() |
boolean |
isProvidedIdImplicit() |
public ConfigContext(SearchConfiguration cfg)
public ConfigContext(SearchConfiguration cfg, SearchMapping searchMapping)
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 addGlobalAnalyzerDef(AnalyzerDef analyzerDef)
public org.apache.lucene.analysis.Analyzer buildLazyAnalyzer(String name)
public String getDefaultNullToken()
public org.apache.lucene.analysis.Analyzer getDefaultAnalyzer()
public org.apache.lucene.util.Version getLuceneMatchVersion()
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 instancesnull
Copyright © 2006–2015 Hibernate. All rights reserved.