[Xapian-discuss] QueryParser::parse_query() uses OR by default? How to switch to AND?

James Aylett james-xapian at tartarus.org
Sat Jan 10 17:25:15 GMT 2009


On Sat, Jan 10, 2009 at 12:08:41PM -0500, tata 668 wrote:

> I use the QueryParser::parse_query() method but I see it uses "OR"
> by default between words? Is there a way to make it use "AND"
> instead?

QueryParser::set_default_op(Query.OP_AND)

J

-- 
/--------------------------------------------------------------------------\
  James Aylett                                                  xapian.org
  james at tartarus.org                               uncertaintydivision.org



More information about the Xapian-discuss mailing list