Search 6 groundwork - Restore the Elasticsearch index schema management strategies (validation, ...)

Activity

Show:

Fabio Massimo Ercoli December 17, 2018 at 2:12 PM
Edited

When we restore DefaultElasticsearchSchemaDropper and relatives, remember to use the method DropIndexWorkBuilder::ignoreIndexNotFound to ignore the exception, instead of using a try / catch block.

Here is an example :

ElasticsearchWork<?> dropWork = workBuilderFactory.dropIndex( indexName ).ignoreIndexNotFound().build();

orchestrator.submit( dropWork );

Fixed

Details

Assignee

Reporter

Components

Sprint

Fix versions

Priority

Created April 11, 2018 at 6:30 AM
Updated January 31, 2019 at 3:08 PM
Resolved January 25, 2019 at 2:22 PM