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

Xapian nobody at xapian.org
Wed Dec 8 03:25:21 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       |   Blockedby:       
 Platform:  All          |    Blocking:       
-------------------------+--------------------------------------------------
 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.

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



More information about the Xapian-tickets mailing list