[Xapian-discuss] finer-granular document weight

Mir Siadaty mir.siadaty at biomedupdater.com
Sun Nov 30 17:35:19 GMT 2014

thanks J; I assume get_weight() returns non-negative numbers where the upper bound changes per query (it is not bound by a particular number like 1 or 1000), correct?

      From: James Aylett <james-xapian at tartarus.org>
 To: Mir Siadaty <mir.siadaty at biomedupdater.com> 
 Sent: Sunday, November 30, 2014 10:05 AM
 Subject: Re: [Xapian-discuss] finer-granular document weight
On 30 Nov 2014, at 00:39, Mir Siadaty <mir.siadaty at biomedupdater.com> wrote:

> Would you please point to a function where one can extract relevance score per document (document weight) that is finer granular than get_percent()

get_weight(), on the MSetIterator, is probably what you want. get_percent() isn’t particularly useful in most cases; weight is a floating point number (double).


 James Aylett, occasional trouble-maker


More information about the Xapian-discuss mailing list