Following the recommendations for getting help, I created a minimal
gist with my problem:
In short, each documents contains a subset of possible tags, for
example "tags": ["red", "green", "blue"]. I want to retrieve documents
matching only specific tags (for example, only either "red" or
filtered query seems to do the job here.
The twist is, I want the documents that matched "red" ranked higher
than documents that matched just "blue". So basically score
differently based on the "tags" filters.
In the documentation, I found something called "custom_filters_score",
but I can't get it to work (see gist).
What is the best way to achieve this? Help and comments on crafting
this query are much appreciated!