[Xapian-discuss] Revision: 15699: $tg->index_text ($text, $weight) fails with 'No matching function for overloaded 'TermGenerator_index_text''

Henry C. henka at cityweb.co.za
Tue Jun 21 08:34:34 BST 2011


On Tue, June 21, 2011 06:23, Olly Betts wrote:
>> It fails with "No matching function for overloaded
>> 'TermGenerator_index_text'..."
>>
>
> I just added a couple of testcases to t/termgenerator.t which still
> passes - these work for me:
>
> $termgen->index_text('foo bar baz foo', 4);
> $termgen->index_text_without_positions('baz zoo', 42);
>
>
> What exactly are you passing for $text and $weight?

A floating point value (try 4.1 or 42.123456789 t/termgenerator.t).

If I recall correctly the core allows a double (typedef double Xapian::weight).

Regards
Henry




More information about the Xapian-discuss mailing list