When I do a query like this '*' and apply a bunch of facets, is there then a way to sort by "number of matched facets"
k
Kishore Nallan
05/12/2021, 10:56 AM
I don't follow you. Say there are 2 facets in the result of 35 records: A with count 20, and B with count 15, what do you want to do here?
s
Stefan Hesse
05/12/2021, 11:24 AM
Assume I have 5 facets: A,B,C,D,E,F each having 20 possible values
Entry 1: matches 1 value in A,B,C,D,E,F
Entry 2 matches: 2 values in all facets
Entry 3 matches: 3 values in all facets
Entry 4 matches: 4 values in all facets
...
And now I would like entry 4 to be ranked first
k
Kishore Nallan
05/12/2021, 11:33 AM
No that's not possible. But this can be pre-computed as a field before hand and then you can just sort on that.
s
Stefan Hesse
05/12/2021, 12:10 PM
Hmm, only if the values I am filtering for a static, which they are not in my case
k
Kishore Nallan
05/12/2021, 12:34 PM
Can you tell me how the filter query will look like?