mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-22 14:24:35 +00:00
Add Indexing Mapping Language in Reindexing (#10537)
This commit is contained in:
parent
801f53bad1
commit
26efcb1197
@ -246,7 +246,11 @@ public class ElasticSearchIndexUtil {
|
||||
// Delete index
|
||||
elasticSearchIndexDefinition.deleteIndex(indexType);
|
||||
// Create index
|
||||
elasticSearchIndexDefinition.createIndex(indexType, lang);
|
||||
String language =
|
||||
createRequest.getSearchIndexMappingLanguage() == null
|
||||
? lang
|
||||
: createRequest.getSearchIndexMappingLanguage().value();
|
||||
elasticSearchIndexDefinition.createIndex(indexType, language);
|
||||
}
|
||||
|
||||
// Start fetching a list of Report Data and pushing them to ES
|
||||
|
@ -35,6 +35,10 @@
|
||||
"description": "Maximum time to wait before sending request to ES in seconds(Default 30)",
|
||||
"type": "integer",
|
||||
"default": 30
|
||||
},
|
||||
"searchIndexMappingLanguage": {
|
||||
"description": "Recreate Indexes with updated Language",
|
||||
"$ref": "../configuration/elasticSearchConfiguration.json#/definitions/searchIndexMappingLanguage"
|
||||
}
|
||||
},
|
||||
"required": ["publisherType", "runMode"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user