[Xapian-tickets] [Xapian] #447: QueryParser: Confusion with Boolean operator and -.

Xapian nobody at xapian.org
Fri Feb 12 17:01:54 GMT 2010

#447: QueryParser: Confusion with Boolean operator and -.
 Reporter:  cworth       |       Owner:  olly    
     Type:  defect       |      Status:  assigned
 Priority:  normal       |   Milestone:  1.2.x   
Component:  QueryParser  |     Version:  1.1.3   
 Severity:  normal       |    Keywords:          
Blockedby:               |    Platform:  All     
 Blocking:               |  

Comment(by cworth):

 Replying to [comment:2 olly]:
 > As a workaround, you can use this query instead, since AND is implicit
 for filters:
 > {{{
 > a -foo:b
 > }}}

 Thanks for the suggestion. As it is, I'm somewhat paranoid about
 always explicitly adding Boolean operators because I haven't yet found
 a way to get Xapian to always do the right thing with various
 prefixes, (see defect #245 for an example). Once that's fixed it will
 be quite nice to start typing queries without explicit operators.

 > I've attached a patch, but although it's simple, the implications of
 > it aren't so clear.  It seems to fix this case, and the changes it
 > makes to the parsing of existing testcases look like they are just
 > different representations with the same meaning, so it's probably
 > OK, and I'd like to hear if it works for you.

 I can't comment on any of the implications, but the patch does seem to
 solve my problem. So thanks for the quick fix! I'll look forward to
 this landing in Xapian.


Ticket URL: <http://trac.xapian.org/ticket/447#comment:3>
Xapian <http://xapian.org/>

More information about the Xapian-tickets mailing list