[Xapian-devel] Backend for Lucene format indexes-How to get doclength
Olly Betts
olly at survex.com
Mon Aug 26 03:17:01 BST 2013
On Mon, Aug 26, 2013 at 09:41:07AM +0800, jiangwen jiang wrote:
> > For now, using weighting schemes which don't use document length is
> > probably the simplest answer.
>
> There's tf-idf weighting scheme on svn master, is it suitable for lucene
> backend?
Yes - TfIdfWeight doesn't ever use the document length (at least with
the normalisations currently implemented).
You could also use BM25 with parameter b=0.
Cheers,
Olly
More information about the Xapian-devel
mailing list