How to find a set of keywords from the keyword field in Solr?

So, I have a keyword field with this scheme Indexed, Tokenized, Multivalued, TermVector Stored, Lowering Norms

then I want to find a set of keywords against it, for example

q = keyword: keyword1, keyword2, keyword3, etc. etc.

and want to return most matching keywords, even one keyword matches, but is ordered by most matches.

Thank you

+4
source share
1 answer
q=keyword:(keyword1 OR keyword2 OR keyword3 OR...) 

Solr will give a higher score for documents that match more keywords, so they will be the first results. You can see the assigned score by adding &fl=*,score to your query.

+8
source

All Articles