[Xapian-tickets] [Xapian] #521: Precedence of HATE is surprising

Xapian nobody at xapian.org
Wed Dec 8 03:30:51 GMT 2010


#521: Precedence of HATE is surprising
-------------------------+--------------------------------------------------
 Reporter:  olly         |       Owner:  olly 
     Type:  defect       |      Status:  new  
 Priority:  normal       |   Milestone:  1.2.x
Component:  QueryParser  |     Version:  1.2.3
 Severity:  normal       |    Keywords:       
Blockedby:               |    Platform:  All  
 Blocking:               |  
-------------------------+--------------------------------------------------
Description changed by olly:

Old description:

> This query:
>
> {{{a OR b -c}}}
>
> gets parsed as:
>
> {{{a OR (b -c}}}
>
> rather than the more obvious interpretation of:
>
> {{{(a OR b) -c}}}
>
> While this appears to be just a precedence issue, actually NOT is
> resolved within a "term group" and {{{b -c}}} is a term group here, so
> this might take a bit of reworking to fix.

New description:

 This query:

 {{{a OR b -c}}}

 gets parsed as:

 {{{a OR (b -c)}}}

 rather than the more obvious interpretation of:

 {{{(a OR b) -c}}}

 While this appears to be just a precedence issue, actually HATE is
 resolved within a "term group" and {{{b -c}}} is a term group here, so
 this might take a bit of reworking to fix.

--

-- 
Ticket URL: <http://trac.xapian.org/ticket/521#comment:1>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list