lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (JIRA) <j...@apache.org>
Subject [jira] [Commented] (SOLR-3377) eDismax: A fielded query wrapped by parens is not recognized
Date Thu, 10 May 2012 12:57:49 GMT

    [ https://issues.apache.org/jira/browse/SOLR-3377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13272293#comment-13272293
] 

Jan Høydahl commented on SOLR-3377:
-----------------------------------

I think we need better test coverage before this is ready.
We should add a bunch of tests with queries involving parens, to verify that they behave as
expected. Both tests involving parens as intended grouping for boolean precedence as well
as parens not intended as boolean sugar but as plain text pasted from somewhere:

{noformat}
q=(foo OR title:bar) AND (title:foo OR bar)
q=Meeting at noon (room:Auditorium)
{noformat}

The first should obey the instructed boolean order, while the last should return docs with
the literal token "room:Autirium" in any of the qf fields.

The key goal of dismax is to be very robust so people can paste in all kind of garbage, and
get matches. So if the query parses as valid boolean logic, that should be used.
                
> eDismax: A fielded query wrapped by parens is not recognized
> ------------------------------------------------------------
>
>                 Key: SOLR-3377
>                 URL: https://issues.apache.org/jira/browse/SOLR-3377
>             Project: Solr
>          Issue Type: Bug
>          Components: query parsers
>    Affects Versions: 3.6
>            Reporter: Jan Høydahl
>            Assignee: Bernd Fehling
>             Fix For: 4.0, 3.6.1
>
>         Attachments: SOLR-3377.patch, SOLR-3377.patch, SOLR-3377.patch, SOLR-3377.patch
>
>
> As reported by "bernd" on the user list, a query like this
> {{q=(name:test)}}
> will yield 0 hits in 3.6 while it worked in 3.5. It works without the parens.

--
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@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message