Is it possible to do disjoint queries or buckets?


(Gaetan Senelle) #1

Hello,
I have multiples simple bool queries Q1, Q2, .... Q100. (With 2 terms queries inside, and random scoring)
Each query is associated to an integer N1, N2, ....N100.

I need to query N1 docs matching Q1, N2 docs matching Q2.... It is easy to do with filters aggregation and top hits.

But I also need disjoint bucket. I need docs to fall into the first matching bucket.
If one doc fall into Q1 bucket, it can't fall into another bucket. If Q1 bucket is full (docs > N1) then docs begging to fall into Q2 if they match.

Is it possible ?

Thank you


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.