How can I do a sort with elastic search where the results would be sorted by the score AND another criteria, like an int.
Currently I can add multiple sort criteria, but I want the score to be one of them and I want to group scores in clusters of values (the width of the cluster being one parameter); then apply the second sort criteria to each bucket
For example, I have 5 hits:
A Score=1.0 Int=3
B Score=0.8 Int=2
C Score=0.8 Int=4
D Score=0.7 Int=5
E Score=0.84 Int=3
I would like this sorted like that:
Bucket 1 - Score 1.xxxxx
A Score=1.0 Int=3
Bucket 2 - Score 0.8xxxxx
C Score=0.8 Int=4
E Score=0.84 Int=3
B Score=0.8 Int=2
Bucket 3 - Score 0.7xxxxx
D Score=0.7 Int=5
This means that the data is grouped by Score buckets and each bucket sorted by Int.