Yes, this isn't a bug in xapian-core - you need to catch
QueryParserError, and you can call get_msg() on it to get an error
message to report to the user.  You'll want to run the message through
i18n as it's always in English currently.  The possible errors are:

Unknown range operation
parse error
Syntax: <expression> AND <expression>
Syntax: <expression> AND NOT <expression>
Syntax: <expression> NOT <expression>
Syntax: <expression> OR <expression>
Syntax: <expression> XOR <expression>

-- 
synaptic crashes on "<word> AND" quicksearch
https://bugs.launchpad.net/bugs/519613
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to