Closed attilasalyi-seon closed 2 years ago
Pinging @elastic/es-analytics-geo (Team:Analytics)
This issue is about the current experimental version of rollups. The team has decided to implement this functionality from scratch as the downsample operation of the TSDB project (https://github.com/elastic/elasticsearch/issues/74660).
As we focus all our efforts into implementing downsampling for TSDB, the team has decided not to proceed with addressing issues in the current experimental rollups.
Therefore, I am closing this issue.
Elasticsearch Version
8.1.2
Installed Plugins
No response
Java Version
bundled
OS Version
Ubuntu 20.04.1
Problem Description
When querying rollup jobs minimum_should_match is not working (tested in v7.17 and v8.1.2) making should clauses useless.
The rollup job limitations page lists compound queries explicitly as allowed ones, so in theory it should work.
Pastebin link for easier copy+paste reproduction: https://pastebin.com/akpG6cED
Steps to Reproduce
Description
This paste shows that Elasticsearch (at least versions 7.17 and 8.1) ignore
minimum_should_match
clause in aggregations against rollup indices (using the rollup_search endpoint), despite the official documentation stating otherwise.The paste creates all necessary components and has a clean up section too.
Create sample index with data
Put data into the sample index
Create and start rollup jobs, run every minute
Query data
Query1: live index data (normal _search)
Query description: give me the amount of CLEAN or UPGRADED cars bought with GBP Result: 1 doc with key GBP and sum value 17.0
Query2: rollup index data (rollup_search)
Query description: same as in Query1 Result: 2 docs with key GBP and sum value 82 (the result a query without should would give)
*** ^^^ THIS IS WHERE YOU CAN SEE THAT minimum_should_match is ignored *
Query3: rollup index data (rollup_search), should in separate bool
Query description: same as in Query1 and Query2 Result: same as in Query2 result
===================================================
Clean up
Clean up rollup job
Logs (if relevant)
No response