Elasticsearch 9.5.1 contained a bug where boolean queries combining multi-value terms queries with `must_not` clauses on fields with disabled indexing (such as TSDB and columnar indices) returned false-positive matches, including documents that should have been excluded, with inflated document counts and no error raised. This was an incomplete fix from 9.5.1, which had addressed the same defect for term and range queries but missed the distinct Lucene query type used by multi-value terms queries. The issue lasted approximately 152 hours and was fully resolved with the release of Elasticsearch 9.5.2, which users on 9.5.0 or 9.5.1 are advised to upgrade to.
Trusted by 1,000+ teams
Stop finding out about outages from your users. Monitor 6,320+ cloud services and get alerted the second something breaks.
Elasticsearch 9.5.2 has been released and contains the fix for this issue. Customers running 9.5.0 or 9.5.1 should upgrade to 9.5.2. At this time we are considering this issue resolved and will be providing no further updates.
Elasticsearch 9.5.1 contains a known issue where boolean queries containing a must, filter, or should clause using a multi-value terms query, alongside a must_not clause on fields with disabled indexing, can still return false-positive matches.
While the patch in 9.5.1 (https://github.com/elastic/elasticsearch/pull/155936) resolved the bulk-scorer defect for term and range query paths; multi-value terms queries utilize a different Lucene query type that was not covered by that fix.
Time Series Data Streams (TSDB) and columnar indices/data streams remain affected for this query pattern, as indexing is disabled by default on those fields.
Affected terms queries may return false-positive matches (including documents that should have been excluded) and report higher document counts than expected. No error is raised, so queries will appear to complete successfully.
What you can do:
- If you have not yet upgraded to 9.5.*, we recommend deferring the upgrade until version 9.5.2 is available.
- If you are already running 9.5.*, contact Elastic Support if you need help determining whether your searches are affected.
We have identified the root cause, a fix is in progress, and we are preparing a patch release. We will provide a further update when the fix is ready.
With IsDown, you can monitor all your critical services' official status pages from one centralized dashboard and receive instant alerts the moment an outage is detected. Say goodbye to constantly checking multiple sites for updates and stay ahead of outages with IsDown.
Start free trialNo credit card required · Cancel anytime · 6320 services available
Integrations with