-
Type: New Feature
-
Status: Resolved
-
Priority: Minor
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021.x
-
Component/s: Elasticsearch
-
Release Notes Summary:Allow for the contribution of additional ElasticSearch mappings.
-
Release Notes Description:
-
Epic Link:
-
Team:PLATFORM
-
Sprint:nxplatform #49, nxplatform #50, nxplatform #51, nxplatform #52, nxplatform #53, nxplatform #54, nxplatform #55
-
Story Points:1
We want to contribute an elastic JSON mapping from any component.
The existing endpoint will collect the list of JSON mappings, for instance, we can have:
<require>org.nuxeo.elasticsearch.defaultConfig</require> <extension target="org.nuxeo.elasticsearch.ElasticSearchComponent" point="elasticSearchIndex"> <elasticSearchIndex name="${elasticsearch.indexName}"> <mapping file="elasticsearch-doc-my-custom-mapping.json" /> </elasticSearchIndex> </extension>
When creating the index the mapping will be applied in the order using multiple updates.
We let elastic performs the merge and resolves the conflict :crossfingers:.
We could do the same logic for settings.
- Is referenced in