You could use local params  with a filter query and specify multiple mm in
each local param. Here's an example for our VA State Laws Solr (you're free
to poke around with). Here I only allow search results that have mm=1 on
catch_line  (a title field) and mm=2 for text field.

http://solr.quepid.com/solr/statedecoded/select?q=deer hunting&fq={!edismax
qf=text mm=2 v=$q}&fq={!edismax qf=catch_line mm=1
v=$q}&defType=edismax&qf=text catch_line&tie=1

You can see the results a bit prettier here at Splainer:

http://splainer.io/#?solr=http:%2F%2Fsolr.quepid.com%2Fsolr%2Fstatedecoded%2Fselect%3Fq%3Ddeer%20hunting%0A%26fq%3D%7B!edismax%20qf%3Dtext%20mm%3D2%20v%3D$q%7D%0A%26fq%3D%7B!edismax%20qf%3Dcatch_line%20mm%3D1%20v%3D$q%7D%26defType%3Dedismax%26qf%3Dtext%20catch_line%26tie%3D1

Hope that helps,
-Doug

On Thu, May 28, 2015 at 12:35 PM, Chris Hostetter <hossman_luc...@fucit.org>
wrote:

>
> : Subject: Per field mm parameter
> :
> : How to specify per field mm parameter in edismax query.
>
> you can't.
>
> the mm param applies to the number of minimum match clauses in the final
> query, where each of those clauses is a disjunction over each of the
> qf fields.
>
> this blog might help explain the query structure...
>
> https://lucidworks.com/blog/whats-a-dismax/
>
>
>
> -Hoss
> http://www.lucidworks.com/
>



-- 
*Doug Turnbull **| *Search Relevance Consultant | OpenSource Connections,
LLC | 240.476.9983 | http://www.opensourceconnections.com
Author: Relevant Search <http://manning.com/turnbull> from Manning
Publications
This e-mail and all contents, including attachments, is considered to be
Company Confidential unless explicitly stated otherwise, regardless
of whether attachments are marked as such.

Reply via email to