I have encountered an issue with this query. (version: 38.5)
I have 40 shards and I want to run two queries like this (this is an example): the first query fetches data, and the second query counts documents using the same filter.
The problem is that it returns different results if I run it multiple times. Without Siren, it works fine.
POST siren/person/_msearch
{"index":["foo"],"preference":"test-key"}
{"query":{"bool":{"must":[{"constant_score":{"boost":0.0,"filter":{"bool":{"must":[{"query_string":{"query":"saved:true"}}],"must_not":[{"query_string":{"query":"cached:true"}}]}}}}]}},"from":0,"min_score":0.0,"size":25,"sort":[{"_score":{"order":"desc"}}],"_source":{"includes":["id"]},"track_total_hits":false}
{"index":["foo"],"preference":"test-key"}
{"query":{"bool":{"must":[{"constant_score":{"boost":0.0,"filter":{"bool":{"must":[{"query_string":{"query":"saved.premium:true"}}],"must_not":[{"query_string":{"query":"cached:true"}}]}}}}]}},"min_score":0.0,"size":1,"sort":[{"_score":{"order":"desc"}}],"_source":{"includes":["id"]},"track_total_hits":true}