mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-22 22:35:11 +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
|
// Delete index
|
||||||
elasticSearchIndexDefinition.deleteIndex(indexType);
|
elasticSearchIndexDefinition.deleteIndex(indexType);
|
||||||
// Create index
|
// 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
|
// 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)",
|
"description": "Maximum time to wait before sending request to ES in seconds(Default 30)",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"default": 30
|
"default": 30
|
||||||
|
},
|
||||||
|
"searchIndexMappingLanguage": {
|
||||||
|
"description": "Recreate Indexes with updated Language",
|
||||||
|
"$ref": "../configuration/elasticSearchConfiguration.json#/definitions/searchIndexMappingLanguage"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["publisherType", "runMode"],
|
"required": ["publisherType", "runMode"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user