I have a test that indexes some data, does an aggregation + search to
verify the results.
Then my test changes 1 piece of data and re-indexes (everything).
refresh() is called.
Then I do an aggregation + search again to verify my results.
The search results are correct (ie updated to reflect the changed data).
The aggregation results are not correct - they are the same as the first
aggregation results - implying the data has not changed.
The aggregation results go wrong at the result of a filter aggregation. The
results of the filter aggregation give a count of 2 - the results of the
search (equiv query or same filter) give 1.
Suspecting a caching issue (e.g. filter caching) I then made sure I flushed
the caches for that index. But sadly, the problem still persists.
I am kinda running out of ideas. Can anyone suggest what to check next?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.