Changing the lucene scoring function

2015-11-21 Thread Victor Makarenkov
Hi everybody! I would appreciate if you can refer me to some *example *or explanation of how to change the scoring function of lucene. I would expect 2 options: 1. changing some configuration, so the ranking function becomes , say Okapi BM 25 instead of standard similarity 2. Is there any provi

Re: Changing the lucene scoring function

2015-11-21 Thread Doug Turnbull
Hi Victor You want to look at setting a similarity other than TF IDF. For example here's BM25 Similarity https://lucene.apache.org/core/4_0_0/core/org/apache/lucene/search/similarities/BM25Similarity.html And the "setSimilarity" method on IndexSearcher https://lucene.apache.org/core/5_0_0/core/