lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frédéric Glorieux <>
Subject Can I use DFISimilarity for search on an an index written with BM25Similarity ?
Date Fri, 14 Jun 2019 11:05:05 GMT

I'm working on literature texts (French).

My users are interested in relevance tweaking to have the most suggested 
texts (for their taste) in top results.

Change similarity at query time is less expensive than reindex all.

I checked that BM25 needs to write “norms“ to keep document length.

Have I missed something ? DFISimilarity seems to write and use norms 
from SimilarityBase, where it is written

computeNorms  «Encodes the document length in the same way as {@link 

For my first experiences, it seems that results with DFISimilarity at 
query time are the same with an index encoded with default 
BM25Similarity or DFI.

Can some gurus confirm with their experience ?

Thanks in advance (and lucene is really a good piece of software).


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message