public abstract class SearchConfigurationBase extends Object implements SearchConfiguration
SearchConfiguration interface,
in that case we can add default implementations here to avoid breaking
integration code.| Constructor and Description |
|---|
SearchConfigurationBase() |
| Modifier and Type | Method and Description |
|---|---|
InstanceInitializer |
getInstanceInitializer()
Returns the initializer to be used to initialize potentially lazy entities or collections.
|
boolean |
isDeleteByTermEnforced() |
boolean |
isIdProvidedImplicit() |
boolean |
isIndexMetadataComplete() |
boolean |
isMultitenancyEnabled() |
boolean |
isTransactionManagerExpected()
By default Hibernate Search expects to execute in the context of a transaction,
and will log warning when certain operations are executed out of such a scope.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClassLoaderService, getClassMapping, getClassMappings, getProgrammaticMapping, getProperties, getProperty, getProvidedServices, getReflectionManagerpublic boolean isTransactionManagerExpected()
In most cases it is safest to default to true.
isTransactionManagerExpected in interface SearchConfigurationfalse Search will avoid logging such warnings.public boolean isIndexMetadataComplete()
In most cases it is safest to default to false.
isIndexMetadataComplete in interface SearchConfigurationtrue if it is safe to assume that the information we have about
index metadata is accurate. This should be set to false for example if the index
could contain Documents related to types not known to this SearchFactory instance.public boolean isDeleteByTermEnforced()
isDeleteByTermEnforced in interface SearchConfigurationtrue if regardless of isIndexMetadataComplete and the number
of types present in the index it is safe to delete by term given that the underlying
store guarantees uniqueness of idspublic InstanceInitializer getInstanceInitializer()
SearchConfigurationgetInstanceInitializer in interface SearchConfigurationpublic boolean isIdProvidedImplicit()
isIdProvidedImplicit in interface SearchConfigurationtrue if we should treat indexed entities as implicitly annotated
with a ProvidedId, if no other Id is specified.public boolean isMultitenancyEnabled()
isMultitenancyEnabled in interface SearchConfigurationtrue if multitenancy
should be enabled. When in doubt, this should return true.Copyright © 2006–2016 Hibernate. All rights reserved.