[Xapian-discuss] Howto activate pure boolean search

James Aylett james-xapian at tartarus.org
Thu Jan 17 04:21:57 GMT 2008


On Thu, Jan 17, 2008 at 03:10:38AM +0000, Olly Betts wrote:

[Boolean weighting schemes]
> Yes - in C++:
> 
>     enquire.set_weighting_scheme(Xapian::BoolWeight());
> 
> Alternatively, you can wrap your query using OP_SCALE_WEIGHT with a
> factor of 0 - in C++:
> 
>     query = Xapian::Query(query.OP_SCALE_WEIGHT, query, 0);

Is that equivalent? Does Xapian avoid running the weighting scheme in
this case?

J

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



More information about the Xapian-discuss mailing list