[Xapian-discuss] Using boolean terms in PHP bindings

Olly Betts olly at survex.com
Fri Mar 31 17:40:13 BST 2006

On Thu, Mar 30, 2006 at 11:54:44AM -0500, Ryan Mahoney wrote:
> Sorry to be a pest, what you entered looks much better... but when I use 
> it, I always get 0 results!

Odd, I can't see why.  All I can suggest is to try both and print out
the query's description in both cases and try to see what's different,
something like so:

   $query = queryparser_parse_query ($query_parser, $_REQUEST["search"] . " category:22");
   echo query_get_description($query);
   $query = queryparser_parse_query($query_parser, $_REQUEST["search"]);
   echo query_get_description($query);
   $query = new_query(QUERY_OP_FILTER, $query, new_query("XC22"));
   echo query_get_description($query);


More information about the Xapian-discuss mailing list