Min score mode not supported in Nested Query

(Sumit Jain) #1

Why is min not available as a score_mode in nested query?

This is a serious limitation, since to select lowest value, we need to use -1 factor in function_score query, still its not possible to select minimum value from 2 subqueries as dis_max query does not work with negative scores.

(Martijn Van Groningen) #2

The min score mode was added from version 2.0.0. So if you're on a pre 2.0.0 release it isn't available. If possible I suggest that you upgrade to the latest 2.x release to make use of the min score mode on the nested query.

(Sumit Jain) #3

Thanks Martijn.

(system) #4