[Xapian-tickets] [Xapian] #414: QueryParser corner cases

Xapian nobody at xapian.org
Tue Aug 22 08:00:00 BST 2023


#414: QueryParser corner cases
-------------------------+-------------------------------
 Reporter:  Olly Betts   |             Owner:  Olly Betts
     Type:  defect       |            Status:  new
 Priority:  normal       |         Milestone:  2.0.0
Component:  QueryParser  |           Version:
 Severity:  normal       |        Resolution:
 Keywords:               |        Blocked By:
 Blocking:               |  Operating System:  All
-------------------------+-------------------------------
Comment (by Olly Betts):

 I wonder if we should require whitespace around operators (or a
 parenthesis is OK - e.g. `a AND(b OR c)AND d` should parse with 3
 operators) but currently some punctuation is treated like a space here,
 but parentheses don't work:

 {{{
 $ quest 'foo=AND=bar'
 Parsed Query: Query((foo at 1 AND Zbar at 2))
 No database specified so not running the query.
 $ quest 'a AND(b OR c)AND d'
 Parsed Query: Query((Za at 1 OR and at 2 OR (Zb at 3 OR Zc at 5) OR Zd at 7))
 No database specified so not running the query.
 }}}
-- 
Ticket URL: <https://trac.xapian.org/ticket/414#comment:6>
Xapian <https://xapian.org/>
Xapian


More information about the Xapian-tickets mailing list