forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Query no matches on .kibana instead of .kibana-devnull
The devnull query was always a big hack to try to force Elasticsearch into giving us an empty search response when we know there are no indices that match the current search in the current timeframe. That hack does not work in all situations, for example if someone creates an index called .kibana-devnull or doesn't enable access to that index pattern in shield. We know users must have access to the kibana index, so it should be safe to query it, and we know we can force an empty response by doing a must_not match_all boolean query, so that's what we do here. Performance shouldn't be an issue since the kibana index is just storing kibana meta data, configurations, and saved objects.
- Loading branch information
Showing
2 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters