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) |
Analyzer |
buildLazyAnalyzer(String name) |
Map<FieldBridge,ClassBridge> |
getClassBridgeInstances(Class<?> type)
Returns class bridge instances configured via the programmatic API, if any.
|
Analyzer |
getDefaultAnalyzer() |
String |
getDefaultNullToken() |
Version |
getLuceneMatchVersion() |
Map<String,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 String getDefaultNullToken()
public Analyzer getDefaultAnalyzer()
public 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 instancesnullCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved