[Xapian-discuss] Bindings Vs Omega multi bool

Olly Betts olly at survex.com
Sun Jan 15 18:47:09 GMT 2006


On Sun, Jan 15, 2006 at 06:40:41PM +0000, John Wards wrote:
> Sorry if its a basic question but I am just getting my head into the
> PHP bindings after using omega for months.
> 
> How do I get the bindings to OR the XRANGE?

$q = new_Query_from_query_pair(Query_OP_OR, new_Query("XRANGE3"), new_Query("XRANGE4"));
$q = new_Query_from_query_pair(Query_OP_OR, $q, new_Query("XRANGE5"));

0.9.3 will allow you to build a query using an operator and an array,
which would be useful for this sort of case.

Cheers,
    Olly



More information about the Xapian-discuss mailing list