[Xapian-discuss] More fun and games with the PHP bindings

John Wards j.wards at sportnetwork.net
Mon Jan 16 11:32:56 GMT 2006


On Mon, 2006-01-16 at 11:18 +0000, Olly Betts wrote:
> On Mon, Jan 16, 2006 at 10:56:17AM +0000, John Wards wrote:
> > $query = queryparser_parse_query ($query_parser, '"castle eden"');
> 
> This is a phrase search (because of the "").
> 
> > http://cms.octoberdevelopment.co.uk/cgi-bin/omega?P=castle
> +eden&DEFAULTOP=and&DB=boris&FMT=query&B=XSOLD0&B=XUNDER0
> 
> This isn't a phrase search.  The equivalent Omega search would be:
> 
> http://cms.octoberdevelopment.co.uk/cgi-bin/omega?P=%22castle+eden%
> 22&DEFAULTOP=and&DB=boris&FMT=query&B=XSOLD0&B=XUNDER0

Still returns the 3 results where the PHP code doesn't.

> For this sort of debugging, try adding this to your OmegaScript query
> template:
> 
> $html{$querydescription}

I have switched this on and I get:

Xapian::Query(((castl:(pos=1) PHRASE 2 eden:(pos=2)) FILTER (XSOLD0 AND
XUNDER0)))

As James suggested it seems like its stemming.

Figured out how to do stemming and its now returning the same results as
omega..hurrah.

Thanks for all the help guys!

John








More information about the Xapian-discuss mailing list