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

Description

None

Environment

None

Activity

Show:
Fabio Massimo Ercoli
December 17, 2018, 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

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Major
Configure