Skip to content

Commit

Permalink
* search: make core.framework.search.ElasticSearch.deleteIndex idempo…
Browse files Browse the repository at this point in the history
…tent (ignore if index is missing/deleted)

Signed-off-by: neo <[email protected]>
  • Loading branch information
neowu committed Oct 10, 2024
1 parent d805054 commit d94dc3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public void closeIndex(String index) {
public void deleteIndex(String index) {
var watch = new StopWatch();
try {
client.indices().delete(builder -> builder.index(index).ignoreUnavailable(true));
client.indices().delete(builder -> builder.index(index).ignoreUnavailable(Boolean.TRUE));
} catch (IOException e) {
throw new UncheckedIOException(e);
} catch (ElasticsearchException e) {
Expand Down

0 comments on commit d94dc3b

Please sign in to comment.