[
https://issues.apache.org/jira/browse/LUCENE-6939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15068054#comment-15068054
]
Arcadius Ahouansou commented on LUCENE-6939:
--------------------------------------------
Thank you very much [~mikemccand] for your help.
As part of this change, we would need to update the BlenderType section of the
wiki at
https://cwiki.apache.org/confluence/display/solr/Suggester
- change {{linear}} and {{reciprocal}} to {{position_linear}} and
{{position_reciprocal}} respectively, and
- also add a section for {{position_exponential_reciprocal}} and the
{{exponent}} config
Again, thank you very much [~mikemccand] for your help.
> BlendedInfixSuggester to support exponential reciprocal BlenderType
> -------------------------------------------------------------------
>
> Key: LUCENE-6939
> URL: https://issues.apache.org/jira/browse/LUCENE-6939
> Project: Lucene - Core
> Issue Type: Improvement
> Components: modules/spellchecker
> Affects Versions: 5.4
> Reporter: Arcadius Ahouansou
> Priority: Minor
> Labels: suggester
> Fix For: 5.5, Trunk
>
> Attachments: LUCENE-6939.patch
>
>
> The orignal BlendedInfixSuggester introduced in LUCENE-5354 has support for:
> - {{BlenderType.POSITION_LINEAR}} and
> - {{BlenderType.POSITION_RECIPROCAL}} .
> These are used to score documents based on the position of the matched token
> i.e the closer is the matched term to the beginning, the higher score you get.
> In some use cases, we need a more aggressive scoring based on the position.
> That's where the exponential reciprocal comes into play
> i.e
> {{coef = 1/Math.pow(position+1, exponent)}}
> where the {{exponent}} is a configurable variable.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]