lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn Heisey (JIRA)" <>
Subject [jira] [Commented] (SOLR-3377) eDismax: A fielded query wrapped by parens is not recognized
Date Mon, 08 Oct 2012 17:30:08 GMT


Shawn Heisey commented on SOLR-3377:

I have come across something similar to this in Solr 3.5.0.  I am wondering if this problem
is fixed by this issue in the upcoming 4.0.  I don't have a 4.0 index at the moment that I
can test on.

{code}((feature:depphotos) OR (feature:glowimages) OR (feature:ipurestockx)  (Kitchen))

handler definition:
    <str name="defType">edismax</str>
    <str name="echoParams">all</str>
    <int name="rows">70</int>
    <str name="shards">,,,,,,</str>
    <float name="tie">0.1</float>
    <int name="qs">3</int>
    <int name="ps">3</int>
    <str name="qf">catchall</str>
    <str name="pf">catchall^2</str>
    <str name="boost">
    <str name="fl">score,*</str>
    <str name="mm">100%</str>
    <str name="q.alt">*:*</str>
    <bool name="lowercaseOperators">false</bool>

boost(+(feature:depphotos feature:glowimages feature:ipurestockx (catchall:kitchen)~0.1) (catchall:"(feature:depphotos
feature) depphotos (feature:glowimages feature) glowimages (feature:ipurestockx feature) ipurestockx

Adding some spaces fixes it:
{code}(( feature:depphotos ) OR ( feature:glowimages ) OR ( feature:ipurestockx )  (Kitchen))


{code}boost(+(feature:depphotos feature:glowimages feature:ipurestockx (catchall:kitchen)~0.1)

It also suffers from the problem where the default operator (AND in our case) is ignored,
but I believe that issue is already filed.

> 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: Yonik Seeley
>            Priority: Critical
>             Fix For: 4.0-BETA
>         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
For more information on JIRA, see:

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

View raw message