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-3377) eDismax: A fielded query wrapped by parens is not recognized
Date Thu, 10 May 2012 12:57:49 GMT


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:

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

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:
>             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:!default.jspa
For more information on JIRA, see:


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

View raw message