[Xapian-discuss] Using boolean terms in PHP bindings

Olly Betts olly at survex.com
Thu Mar 30 14:37:58 BST 2006


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