Package io.jmix.search.index
Class IndexConfiguration
java.lang.Object
io.jmix.search.index.IndexConfiguration
Contains configuration of index related to some entity
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Class<?>
protected final String
protected final String
protected final IndexMappingConfiguration
protected final org.elasticsearch.common.settings.Settings
-
Constructor Summary
ConstructorDescriptionIndexConfiguration
(String entityName, Class<?> entityClass, String indexName, IndexMappingConfiguration mapping, org.elasticsearch.common.settings.Settings settings, Set<Class<?>> affectedEntityClasses, Predicate<Object> indexablePredicate) -
Method Summary
Modifier and TypeMethodDescriptionGets java classes of all entities presented in indexed properties.Class<?>
Gets java class of entity indexed in this indexGets name of entity indexed in this indexGets name of this indexGets mapping of this indexorg.elasticsearch.common.settings.Settings
Gets settings of this index
-
Field Details
-
entityName
-
entityClass
-
affectedEntityClasses
-
indexName
-
mapping
-
settings
protected final org.elasticsearch.common.settings.Settings settings -
indexablePredicate
-
-
Constructor Details
-
IndexConfiguration
-
-
Method Details
-
getEntityName
Gets name of entity indexed in this index- Returns:
- entity name
-
getEntityClass
Gets java class of entity indexed in this index- Returns:
- java class
-
getIndexName
Gets name of this index- Returns:
- index name
-
getMapping
Gets mapping of this index- Returns:
- mapping configuration
-
getSettings
public org.elasticsearch.common.settings.Settings getSettings()Gets settings of this index- Returns:
- settings
-
getAffectedEntityClasses
Gets java classes of all entities presented in indexed properties. Transitive entities are included too.- Returns:
- set of java classes
-
getIndexablePredicate
GetsPredicate
<Object
> that will be applied to every entity instance during indexing process. Only instances passed the predicate check will be indexed. Predicate is not used during deletion process.- Returns:
- indexable predicate
-