[Xapian-discuss] query syntax?
Torsten Foertsch
torsten.foertsch at gmx.net
Thu Nov 6 12:49:09 GMT 2008
Hi,
I am a bit confused about query syntax if wildcard queries are allowed.
The code looks like:
my $query=$qp->parse_query( $qstring, FLAG_WILDCARD );
printf "Parsed query '%s'\n", $query->get_description();
$qstring is "besteigung AND muench"
If the wildcard flag is set $qstring is parsed as:
Xapian::Query((Zbesteig:(pos=1) OR and:(pos=2) OR Zmuench:(pos=3)))
without FLAG_WILDCARD I get this:
Xapian::Query((Zbesteig:(pos=1) AND Zmuench:(pos=2)))
That means the wildcard flag turns "AND" from an operator into a search
word. Is that on purpose?
Can search operators be used together with wildcard searches?
I am using 1.0.9.
Thanks,
Torsten
More information about the Xapian-discuss
mailing list