[Xapian-discuss] Need some help with spelling suggestions
Ivo Jansch - Ibuildings
ivo at ibuildings.nl
Sun May 17 11:09:31 BST 2009
Hi,
I have trouble getting the spelling suggestion feature to work when I
use multiple search terms.
If I use:
$qp->set_default_op(XapianQueryParser::FLAG_LOVEHATE);
$query = $qp->parse_query($queryString)
It works fine when I search for e.g. 'hello world'
However, changing this to:
$qp->set_default_op(XapianQueryParser::FLAG_LOVEHATE |
XapianQueryParser::FLAG_SPELLING_CORRECTION);
$query = $qp->parse_query($queryString)
I now end up with the following error:
[17-May-2009 11:57:50] PHP Fatal error: Uncaught exception 'Exception'
with message 'InvalidOperationError: get_min_subqs called with invalid
operator type' in /Applications/MAMP/bin/php5/lib/php/xapian.php:1408
Stack trace:
#0 /Applications/MAMP/bin/php5/lib/php/xapian.php(1408):
queryparser_parse_query(Resource id #132, 'hello world')
Am I doing something wrong, or is spelling correction not supported for
queries that have multiple terms?
Greetings,
Ivo
More information about the Xapian-discuss
mailing list