public interface ExtendedSearchIntegrator extends SearchIntegrator
Modifier and Type | Method and Description |
---|---|
HSQuery |
createLuceneBasedHSQuery()
Return an Hibernate Search query object.
|
ScopedAnalyzerReference |
getAnalyzerReference(Class<?> clazz)
Retrieve the scoped analyzer reference for a given class.
|
Map<IndexManagerType,AnalyzerRegistry> |
getAnalyzerRegistries()
Returns a map of all known entity index binding (indexed entities) keyed against the indexed type
|
AnalyzerRegistry |
getAnalyzerRegistry(IndexManagerType indexManagerType)
Retrieve the analyzer registry for a given index manager type.
|
Properties |
getConfigurationProperties() |
Set<Class<?>> |
getConfiguredTypesPolymorphic(Class<?>[] classes)
Given a set of target entities, return the set of configured subtypes.
|
DatabaseRetrievalMethod |
getDefaultDatabaseRetrievalMethod()
Returns the default
DatabaseRetrievalMethod . |
ObjectLookupMethod |
getDefaultObjectLookupMethod()
Returns the default
ObjectLookupMethod . |
DocumentBuilderContainedEntity |
getDocumentBuilderContainedEntity(Class<?> entityType) |
int |
getFilterCacheBitResultsSize() |
FilterCachingStrategy |
getFilterCachingStrategy() |
FilterDef |
getFilterDefinition(String name) |
Map<Class<?>,EntityIndexBinding> |
getIndexBindings()
Returns a map of all known entity index binding (indexed entities) keyed against the indexed type
|
Set<Class<?>> |
getIndexedTypesPolymorphic(Class<?>[] classes)
Given a set of target entities, return the set of configured subtypes that are indexed.
|
IndexManagerHolder |
getIndexManagerHolder() |
InstanceInitializer |
getInstanceInitializer() |
StatisticsImplementor |
getStatisticsImplementor()
Retrieve the statistics implementor instance for this factory.
|
TimingSource |
getTimingSource() |
boolean |
isDirtyChecksEnabled() |
boolean |
isIndexUninvertingAllowed()
Whether index uninverting should be done when running queries with sorts not covered by the configured sortable
fields.
|
boolean |
isJMXEnabled() |
addClasses, buildQueryBuilder, close, createHSQuery, createHSQuery, createHSQuery, getAnalyzer, getAnalyzer, getDefaultTimeoutExceptionFactory, getErrorHandler, getIndexBinding, getIndexedTypeDescriptor, getIndexedTypes, getIndexingMode, getIndexManager, getIndexReaderAccessor, getServiceManager, getStatistics, getWorker, getWorkSerializer, isStopped, makeBatchBackend, optimize, optimize, unwrap
Map<Class<?>,EntityIndexBinding> getIndexBindings()
DocumentBuilderContainedEntity getDocumentBuilderContainedEntity(Class<?> entityType)
FilterCachingStrategy getFilterCachingStrategy()
int getFilterCacheBitResultsSize()
Set<Class<?>> getConfiguredTypesPolymorphic(Class<?>[] classes)
"Configured" types are types that Hibernate Search was instructed to take into consideration,
i.e. types returned by SearchConfiguration.getClassMappings()
.
classes
- an array of typesSet<Class<?>> getIndexedTypesPolymorphic(Class<?>[] classes)
"Configured" types are types that Hibernate Search was instructed to take into consideration,
i.e. types returned by SearchConfiguration.getClassMappings()
.
"Indexed" types are configured types that happened to be annotated with @Indexed
,
or similarly configured through a programmatic mapping.
Note: the fact that a given type is configured or indexed doesn't mean that its subtypes are, too. Each type must be configured explicitly.
classes
- an array of typesboolean isJMXEnabled()
true
if JMX is enabledStatisticsImplementor getStatisticsImplementor()
boolean isDirtyChecksEnabled()
true
if we are allowed to inspect entity state to skip some indexing operations.
Can be disabled to get pre-3.4 behavior which always rebuilds the document.IndexManagerHolder getIndexManagerHolder()
IndexManagerHolder
which gives access to all index managers known to this factoryInstanceInitializer getInstanceInitializer()
InstanceInitializer
for class/object initialization.TimingSource getTimingSource()
Properties getConfigurationProperties()
DatabaseRetrievalMethod getDefaultDatabaseRetrievalMethod()
DatabaseRetrievalMethod
.
This is either the system default or the default specified via the configuration property
Environment.DATABASE_RETRIEVAL_METHOD
.DatabaseRetrievalMethod
.ObjectLookupMethod getDefaultObjectLookupMethod()
ObjectLookupMethod
.
This is either the system default or the default specified via the configuration property
Environment.OBJECT_LOOKUP_METHOD
.OBJECT_LOOKUP_METHOD
.boolean isIndexUninvertingAllowed()
Map<IndexManagerType,AnalyzerRegistry> getAnalyzerRegistries()
AnalyzerRegistry getAnalyzerRegistry(IndexManagerType indexManagerType)
indexManagerType
- the index manager type for which to retrieve the registrySearchException
- if the index manager type is unknownScopedAnalyzerReference getAnalyzerReference(Class<?> clazz)
clazz
- The class for which to retrieve the analyzer.IllegalArgumentException
- in case clazz == null
or the specified
class is not an indexed entity.HSQuery createLuceneBasedHSQuery()
Copyright © 2006–2017 Hibernate. All rights reserved.