[Xapian-discuss] Using boolean terms in PHP bindings

Ryan Mahoney ryan at frameweld.com
Thu Mar 30 17:54:44 BST 2006


Sorry to be a pest, what you entered looks much better... but when I use 
it, I always get 0 results!

-r

Olly Betts wrote:
> On Wed, Mar 29, 2006 at 05:55:21PM -0500, Ryan Mahoney wrote:
>   
>>    $query = queryparser_parse_query ($query_parser, $_REQUEST["search"] 
>> . " category:22");
>>     
>
> Appending stuff to the user's query like that is a bit icky - I'd suggest:
>
>      $query = queryparser_parse_query($query_parser, $_REQUEST["search"]);
>      $query = new_query(QUERY_OP_FILTER, $query, new_query("XC22"));
>
> Cheers,
>     Olly
>
>
>   





More information about the Xapian-discuss mailing list