[Xapian-discuss] Adding terms of more than one word with PHP bindings

Yannick Warnier ywarnier at beeznest.org
Sun Sep 21 01:57:25 BST 2008


Le mercredi 17 septembre 2008 à 05:10 +0100, Olly Betts a écrit :
> On Mon, Sep 15, 2008 at 11:34:42AM +0100, James Aylett wrote:
> > You can absolutely search on terms with spaces in them - however this
> > does not match the term plan used by QueryParser, so you can't do it
> > with that. If you construct your own query, you can have whatever
> > terms you like in it.
> 
> More explicitly, in PHP:
> 
>     $query = new XapianQuery("term with spaces");
> 
> Incidentally, there's some discussion, and a first attempt at a patch
> for allowing the QueryParser to support this sort of thing in ticket
> #128:
> 
> http://trac.xapian.org/ticket/128

Thanks Olly,

Defining it explicitly sure helps for non savvies.

Yannick

PS: Thanks James as well, but an example makes it so much easier.




More information about the Xapian-discuss mailing list