The "mm" parameter only applies to the top level query, not nested queries.
At the top level you have:
(...) AND (...)
And it's an AND, not OR.
The LucidWorks Search query parser does support minMatch at any level, such
as:
(...)~2 AND (...)~2
-- Jack Krupansky
-----Original Message-----
From: anand_solr
Sent: Monday, June 17, 2013 10:14 PM
To: solr-user@lucene.apache.org
Subject: mm (Minimum 'Should' Match)
I am not sure if this is supported out of box in Solr.
Search by giving multiple facet fields and query containing set of values
for each facet field & minimum should match parameter for each facets. The
result should be document contains facets with minimum match.
Eg: solr documents of type electronic products. so each document will
contain category [lcd,led,plasma], manufacture [sony,samsung, apple]
information.
query something like
http://localhost:8983/solr/select?q=(category:lcd+OR+category:led+OR+category:plasma)+AND+(manufacture:sony+OR+manufacture:samsung+OR+manufacture:apple)&facet.field=category&facet.field=manufacture&fl=id&mm=2
Should return the documents containing "category with matching atleast 2
keywords [lcd,led or lcd,plasma or other valid combination] AND manufacture
with matching atleast 2 keywords [sony,samsung or samsung,apple or other
valid combination]"...
--
View this message in context:
http://lucene.472066.n3.nabble.com/mm-Minimum-Should-Match-tp4071197.html
Sent from the Solr - User mailing list archive at Nabble.com.