[Xapian-discuss] Category Search with Values

James Aylett james-xapian at tartarus.org
Mon May 18 12:30:26 BST 2009


On Mon, May 18, 2009 at 12:57:52PM +0200, Senior Boss wrote:

> $user_query = "blu red";
> $filter_query = "XCcategory1";
> $query = new XapianQuery(XapianQuery::OP_FILTER, $user_query, $filter_query);

You'll want to construct and actual query, not a string, for
$user_query, probably using the QueryParser (assuming you're using the
TermGenerator while indexing).

J

-- 
  James Aylett

  talktorex.co.uk - xapian.org - uncertaintydivision.org



More information about the Xapian-discuss mailing list