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
FieldsModifier and TypeFieldDescriptionprotected final Class<?>protected final Stringprotected final Stringprotected final IndexMappingConfigurationprotected final org.elasticsearch.common.settings.Settings - 
Constructor Summary
ConstructorsConstructorDescriptionIndexConfiguration(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.SettingsGets 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
 
 
 -