So I have a keyword field with this schema Indexed, Tokenized, Multivalued, TermVector Stored, Omit Norms
then I wanna search set of keywords against it like
q=keyword:keyword1, keyword2, keyword3, etc, etc
and want to return most matching keywords, even 1 match keyword is fine, but ordered by most match.
thank you
q=keyword:(keyword1 OR keyword2 OR keyword3 OR...)
Solr will give a higher score to the documents that match more keywords so they will be the first results. You can see the assigned score by appending &fl=*,score
to your querystring.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With