Skip to content

Commit

Permalink
Storage(ElasticSearch): add search options to tolerate inexisting ind…
Browse files Browse the repository at this point in the history
…ices (#9076)
  • Loading branch information
kezhenxu94 committed May 17, 2022
1 parent b60855e commit 2372c06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/en/changes/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
* Remove unnecessary `onCompleted` on gRPC `onError` callback.
* Remove `Layer` concept form `Process`.
* Update to list all eBPF profiling schedulers without duration.
* Storage(ElasticSearch): add search options to tolerate inexisting indices.

#### UI

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,13 @@ public SearchResponse search(Supplier<String[]> indices, Search search) {
Arrays.stream(indices.get())
.map(indexNameConverter)
.toArray(String[]::new);
final SearchParams params = new SearchParams()
.allowNoIndices(true)
.ignoreUnavailable(true)
.expandWildcards("open");
return es.get().search(
search,
null,
params,
indexNames);
}

Expand Down

0 comments on commit 2372c06

Please sign in to comment.