[Xapian-discuss] Phrase Searching

tech at dbx.co.uk tech at dbx.co.uk
Fri Oct 14 14:10:59 BST 2005


RTFM :(

The rest of the system is going pretty well, there's some danger of going
live with it.

Thanks Olly

Original Message:
-----------------
From: Olly Betts olly at survex.com
Date: Fri, 14 Oct 2005 13:01:29 +0100
To: tech at dbx.co.uk, xapian-discuss at lists.xapian.org
Subject: Re: [Xapian-discuss] Phrase Searching


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


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .





More information about the Xapian-discuss mailing list