You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by alessandrobenedetti <gi...@git.apache.org> on 2018/06/01 11:54:14 UTC
[GitHub] lucene-solr pull request #391: [LUCENE-8343] introduced weight 0 check and p...
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....@...>
Date: 2018-06-01T11:52:41Z
[LUCENE-8343] introduced weight 0 check and positional coefficient scaling + tests
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[GitHub] lucene-solr pull request #391: [LUCENE-8343] introduced weight 0 check and p...
Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:
https://github.com/apache/lucene-solr/pull/391
---
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org