GitHub user alessandrobenedetti opened a pull request: https://github.com/apache/lucene-solr/pull/391
[LUCENE-8343] introduced weight 0 check and positional coefficient scaling Currently the BlendedInfixSuggester return a (long) score to rank the suggestions. This score is calculated as a multiplication between : long Weight : the suggestion weight, coming from a document field, it can be any long value ( including 1, 0,.. ) double Coefficient : 0<=x<=1, calculated based on the position match, earlier the better The resulting score is a long, which means that at the moment, any weight<10 can bring inconsistencies. Edge cases Weight =1 Score = 1( if we have a match at the beginning of the suggestion) or 0 ( for any other match) Weight =0 Score = 0 ( independently of the position match coefficient) You can merge this pull request into a Git repository by running: $ git pull https://github.com/SeaseLtd/lucene-solr LUCENE-8343 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/lucene-solr/pull/391.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #391 ---- commit e83e8ee1a42388606fffd10330ed1aeec9518098 Author: Alessandro Benedetti <a.benedetti@...> Date: 2018-06-01T11:52:41Z [LUCENE-8343] introduced weight 0 check and positional coefficient scaling + tests ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org