Class IndexingConfiguration
- java.lang.Object
-
- org.infinispan.commons.configuration.AbstractTypedPropertiesConfiguration
-
- org.infinispan.configuration.cache.IndexingConfiguration
-
- All Implemented Interfaces:
Matchable<IndexingConfiguration>
public class IndexingConfiguration extends AbstractTypedPropertiesConfiguration implements Matchable<IndexingConfiguration>
Configures indexing of entries in the cache for searching.
-
-
Field Summary
Fields Modifier and Type Field Description static AttributeDefinition<Boolean>
AUTO_CONFIG
static AttributeDefinition<Index>
INDEX
static AttributeDefinition<Set<Class<?>>>
INDEXED_ENTITIES
-
Fields inherited from class org.infinispan.commons.configuration.AbstractTypedPropertiesConfiguration
attributes, PROPERTIES
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AttributeSet
attributes()
boolean
autoConfig()
Determines if autoconfig is enabled for this IndexingConfigurationboolean
enabled()
Deprecated.Useindex()
insteadIndex
index()
Returns the indexing mode of this cache.Set<Class<?>>
indexedEntities()
boolean
indexLocalOnly()
Deprecated.Useindex()
insteadboolean
indexShareable()
Check if the indexes can be shared.TypedProperties
properties()
These properties are passed directly to the embedded Hibernate Search engine, so for the complete and up to date documentation about available properties refer to the Hibernate Search reference of the version you're using with Infinispan Query.String
toString()
-
Methods inherited from class org.infinispan.commons.configuration.AbstractTypedPropertiesConfiguration
attributeSet, equals, hashCode
-
-
-
-
Field Detail
-
INDEX
public static final AttributeDefinition<Index> INDEX
-
AUTO_CONFIG
public static final AttributeDefinition<Boolean> AUTO_CONFIG
-
INDEXED_ENTITIES
public static final AttributeDefinition<Set<Class<?>>> INDEXED_ENTITIES
-
-
Method Detail
-
enabled
@Deprecated public boolean enabled()
Deprecated.Useindex()
insteadWhether indexing is enabled. False by default.
-
indexLocalOnly
@Deprecated public boolean indexLocalOnly()
Deprecated.Useindex()
insteadIf true, only index changes made locally, ignoring remote changes. This is useful if indexes are shared across a cluster to prevent redundant indexing of updates.
-
properties
public TypedProperties properties()
These properties are passed directly to the embedded Hibernate Search engine, so for the complete and up to date documentation about available properties refer to the Hibernate Search reference of the version you're using with Infinispan Query.
- Overrides:
properties
in classAbstractTypedPropertiesConfiguration
- See Also:
- Hibernate Search
-
index
public Index index()
Returns the indexing mode of this cache.
-
autoConfig
public boolean autoConfig()
Determines if autoconfig is enabled for this IndexingConfiguration
-
attributes
public AttributeSet attributes()
-
indexShareable
public boolean indexShareable()
Check if the indexes can be shared. Currently only "ram" based indexes don't allow any sort of sharing- Returns:
- false if the index is ram only and thus not shared
-
toString
public String toString()
- Overrides:
toString
in classAbstractTypedPropertiesConfiguration
-
-