[Xapian-discuss] Document weighting in 1.1

double ninive at gmx.at
Wed Mar 31 20:02:20 BST 2010


Hi Olly,

Olly Betts wrote:
> On Fri, Sep 11, 2009 at 11:55:11AM +0200, double wrote:
>   
>> Xapian::ValueWeightPostingSource xapian_valueweight( 0 );
>> xapian_query = Xapian::Query( Xapian::Query::OP_AND_MAYBE,
>>                  xapian_query, Xapian::Query(&xapian_valueweight) );
>>     
>
> This should work for any slot (provided you both set and use the same
> slot number!)  If not, can you provide a self-contained example which
> shows it failing?
>   

Attached the testcase.
If "WEIGHT_SLOT" is set to "0" it works, if it is "1" it doesn't.
This is not urgent at all.

Thanks a lot
Marcus


-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.cpp
Type: text/x-c++src
Size: 2077 bytes
Desc: not available
URL: <http://lists.xapian.org/pipermail/xapian-discuss/attachments/20100331/af3a88ec/attachment.cpp>


More information about the Xapian-discuss mailing list