[Xapian-discuss] Bindings Vs Omega multi bool

John Wards j.wards at sportnetwork.net
Sun Jan 15 17:32:36 GMT 2006


Evening All,

Having fun and games with the PHP bindings.

If I run the following through omega I get 51 hits:

/usr/local/lib/omega/bin/omega P= DB=boris FMT=xml 'B=XL3' 'B=XRANGE3'
'B=XRANGE4' 'B=XRANGE5' 'B=XSOLD0' 'B=XUNDER0'

If I have the following php code:

$query = new_query ("XL3");
$query = new_Query_from_query_pair(Query_OP_FILTER, $query,
new_Query("XSOLD0"));
$query = new_Query_from_query_pair(Query_OP_FILTER, $query,
new_Query("XUNDER0"));
$query = new_Query_from_query_pair(Query_OP_FILTER, $query,
new_Query("XRANGE3"));
$query = new_Query_from_query_pair(Query_OP_FILTER, $query,
new_Query("XRANGE4"));
$query = new_Query_from_query_pair(Query_OP_FILTER, $query,
new_Query("XRANGE5"));

I get Zero hits.

The output of Query_get_description prints the following:

Xapian::Query((((((XL3 FILTER XSOLD0) FILTER XUNDER0) FILTER XRANGE3) FILTER
XRANGE4) FILTER XRANGE5))

If I have the following PHP code:

$query = new_query ("XL3");
$query = new_Query_from_query_pair(Query_OP_FILTER, $query,
new_Query("XSOLD0"));
$query = new_Query_from_query_pair(Query_OP_FILTER, $query,
new_Query("XUNDER0"));
$query = new_Query_from_query_pair(Query_OP_FILTER, $query,
new_Query("XRANGE4"));

I get 19 matches with the Query_get_description printing the following:

Xapian::Query((((XL3 FILTER XSOLD0) FILTER XUNDER0) FILTER XRANGE4))

I get 19 matches from omgea for the following:

/usr/local/lib/omega/bin/omega P= DB=boris FMT=xml 'B=XL3' 'B=XRANGE4'
'B=XSOLD0' 'B=XUNDER0'

Why is the multiple XRANGEs working in omega and not through the bindings, what
am I doing wrong.

Any pointers whould be helpfull...its been a long Sunday!

Cheers
John

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the Xapian-discuss mailing list