I have a string multiValued field in SOLR
named languages and I want a query to return only exact matches where all of the languages from the query are in the multiValued field.
For example, lets say I have three documents:
"languages": [
"English",
"Russian",
"Swedish"
],
"languages": [
"English",
"Japanese",
"Russian",
"Spanish",
"Thai"
],
"languages": [
"English",
"Spanish"
],
If I were to query for English and Russian I should only return the first two documents. Here are some examples of the queries used:
q=languages:"English" and languages:"Russian"
q=languages:("English" and "Russian")
q=languages:("English","Russian")
q=languages:("Russian" "English")
In all cases these return all records that have either English or Russian. I may be overlooking something obvious but I have searched around and found nothing that explains this behavior.