lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Turnbull <>
Subject Re: Per field mm parameter
Date Thu, 28 May 2015 17:51:59 GMT
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. 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:!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,

On Thu, May 28, 2015 at 12:35 PM, Chris Hostetter <>

> : 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...
> -Hoss

*Doug Turnbull **| *Search Relevance Consultant | OpenSource Connections,
LLC | 240.476.9983 |
Author: Relevant Search <> from Manning
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.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message