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>
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>