[Xapian-discuss] Phrase Searching
Olly Betts
olly at survex.com
Fri Oct 14 13:01:29 BST 2005
On Fri, Oct 14, 2005 at 07:42:24AM -0400, tech at dbx.co.uk wrote:
> Xapian::Query((perl:(pos=1) PHRASE 2 lamp:(pos=2)))
>
> Generated by query parser from "perl lamp"
>
> Unfortunately it seems to return me documents with perl AND lamp even when
> they are not adjacent.
Did you index with positional information? If there's no positional
information in the database then PHRASE is converted to AND (which seems
more useful than matching nothing, which is what we used to do...)
The delve tool in the examples subdirectory is a good way of checking
this sort of thing.
Cheers,
Olly
More information about the Xapian-discuss
mailing list