lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (JIRA) <>
Subject [jira] [Commented] (SOLR-2649) MM ignored in edismax queries with operators
Date Tue, 26 Feb 2013 23:40:13 GMT


Jan Høydahl commented on SOLR-2649:

So, are we ready to agree on wanted behavior and start coding?

I'll try to formulate a suggestion:

Presence of explicit operators in the query should *not* totally disregard mm/q.op.
For the pure 0%/q.op=OR case, mm will be 0 and work correctly - as today
For the pure 100%/q.op=AND case, mm will be set to # top-level SHOULD clauses and work as
For the mm=1..n/mm=1%..99% case, mm will be calculated based on # top-level SHOULD clauses
and work as expected.
> MM ignored in edismax queries with operators
> --------------------------------------------
>                 Key: SOLR-2649
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: query parsers
>            Reporter: Magnus Bergmark
>            Priority: Minor
>             Fix For: 4.2, 5.0
> Hypothetical scenario:
>   1. User searches for "stocks oil gold" with MM set to "50%"
>   2. User adds "-stockings" to the query: "stocks oil gold -stockings"
>   3. User gets no hits since MM was ignored and all terms where AND-ed together
> The behavior seems to be intentional, although the reason why is never explained:
>   // For correct lucene queries, turn off mm processing if there
>   // were explicit operators (except for AND).
>   boolean doMinMatched = (numOR + numNOT + numPluses + numMinuses) == 0; 
> (lines 232-234 taken from tags/lucene_solr_3_3/solr/src/java/org/apache/solr/search/
> This makes edismax unsuitable as an replacement to dismax; mm is one of the primary features
of dismax.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message