Also, just to be clear, MM/minMatch, is not an option for a "field" but for
a full BooleanQuery. I mean, you can't have two different MM values within
the same BooleanQuery, except with nested BooleanQuerys, where each BQ has
its own MM.
-- Jack Krupansky
-----Original Message-----
From: Jason Hellman
Sent: Monday, June 03, 2013 11:40 AM
To: solr-user@lucene.apache.org
Subject: Re: Can mm (min-match) be specified by field in dismax or edismax?
Well, there is a hack(ish) way to do it:
_query_:"{!type=edismax qf='someField' v='$q' mm=100%}"
This is clearly not a solrconfig.xml settings, but part of your query string
using LocalParam behavior.
This is going to get really messy if you have plenty of fields you'd like to
search, where you'd need a similar construct for each. I cannot attest to
performance at scale with such a construct…but just showing a way you can go
about this if you feel compelled enough to do so.
Jason
On Jun 3, 2013, at 8:08 AM, Jack Krupansky <j...@basetechnology.com> wrote:
No, but you can with the LucidWorks Search query parser:
f1:(cat dog fox bat fish cow)~50% f2:(cat dog fox bat fish zebra)~2
See:
http://docs.lucidworks.com/display/lweug/Minimum+Match+for+Simple+Queries
-- Jack Krupansky
-----Original Message----- From: Eric Wilson Sent: Monday, June 03, 2013
10:30 AM To: solr-user@lucene.apache.org Subject: Can mm (min-match) be
specified by field in dismax or edismax?
I would like to have the min-match set differently for different fields in
my dismax handler. Is this possible?