[Xapian-discuss] Re: Query Parser and Indexes
Ted Jordan
ted at qtis.co.nz
Fri Dec 30 03:41:18 GMT 2005
Olly Betts <olly <at> survex.com> writes:
> So you need to call something like this before you actually parse the
> query:
>
> QueryParser_add_prefix($qp, "extid", "extid");
Thanks Ollie. I tried that however it is still not finding the document.
I pass the string
"extid:1234" (without quotes)
into the query_parser and Query_get_description($query) returns
Xapian::Query(extid1234:(pos=1))
So it looks like it's searching for the term "extid1234" rather than "1234"
withing the extid prefix.
Regards,
-Ted.
More information about the Xapian-discuss
mailing list