Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-Dev

[jira] [Created] (SOLR-3741) ExtendedDismaxQParser (edismax) does not obey q.op for queries with operators

 

 

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded


jira at apache

Aug 17, 2012, 5:18 PM

Post #1 of 1 (46 views)
Permalink
[jira] [Created] (SOLR-3741) ExtendedDismaxQParser (edismax) does not obey q.op for queries with operators

Jack Krupansky created SOLR-3741:
------------------------------------

Summary: ExtendedDismaxQParser (edismax) does not obey q.op for queries with operators
Key: SOLR-3741
URL: https://issues.apache.org/jira/browse/SOLR-3741
Project: Solr
Issue Type: Bug
Components: query parsers
Affects Versions: 4.0-BETA, 3.6.1
Reporter: Jack Krupansky
Fix For: 4.0, 3.6.2


For a query such as "cat dog OR (fox bat fish)" with &q.op=AND, the default query operator remains "OR" for the entire query. This is not documented behavior and rather surprising.

This happens because edismax only simulates the default operator by forcing "mm" (minMatch) to 100% for the top-level BooleanQuery alone, but only if there are NO explicit operators present.

One solution is for edismax to always set the default query operator when calling the classic Lucene query parser, or at least when q.op=AND.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe [at] lucene
For additional commands, e-mail: dev-help [at] lucene

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.