Can someone please help on the below request?
Please find the below example and the exact issue I am facing....
I'm having some problems with aggregations returning old data. When I query directly using bool/must/term
the data is not there - as it should. Only in aggregation results.
- I have a property called
foo
. - Then I updated all the documents where
foo
had the value fromx
toy
.
Querying directly for foo
= x
yields 0 results (Old value) and foo
= y
yields 10 results (New value)
When aggregating foo
I receive x
in the foo
property (with doc_count
=0
) and y
in the foo
property (with doc_count
=10
, which seems correct) . why still x is appearing in foo property with zero doc count?
Elasticsearch version 8.15
running in Elastic Cloud.
Note: when I removed the index completely and populated the index again, everything was working as it should. It only appears to be happening on existing indices.