sergehuber opened a new pull request, #928:
URL: https://github.com/apache/unomi/pull/928

   ## Summary
   Fixes [UNOMI-1020](https://issues.apache.org/jira/browse/UNOMI-1020): above 
10,000 matches, the optimized aggregate reported an approximate `_filtered`.
   
   - Both aggregate paths now count hits exactly (`track_total_hits`). 
Aggregations already visit every matching document, so this costs little.
   - The bucket-sum fallback for `_filtered` is removed, on Elasticsearch and 
OpenSearch.
   - New IT: 10,005 matches with a bucket limit of 1 must report `_filtered` = 
10,005.
   
   ## Test plan
   - [x] Unit tests of both persistence modules
   - [x] `PersistenceServiceIT` on Elasticsearch and OpenSearch (12/12)
   - [ ] CI
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to