So suppose I have a multivalued field for categories. Let's say we have 3 items with these categories:
Item 1: category ids [1,2,5,7,9] Item 2: category ids [4,8,9] Item 3: category ids [1,4,9] I now run a filter query for any of the following category ids [1,4,9]. I should get all of them back as results because they all include at least one category which I'm querying. Now, how do I order it based on the number of matching categories?? In this case, I would like Item 3 (matched all [1,4,9]) to be ranked higher, followed by Item 2 (matched [4,9]) and Item 3 (matches [1,9]). Is there a way I can boost documents based on the number of matches? I don't want an "absolute" rank where Item 3 is definitely the first result, but rather a way to boost Item 3's score higher than that of Item 1 and 2 so that it's more likely to show up higher (depending on the query string). Thanks! -- Steven Ou | 歐偉凡 *ravn.com* | Chief Technology Officer steve...@gmail.com | +1 909-569-9880