Hi all, I have been working quite a bit on the BlendedInfixSuggester : - to fix a bug : LUCENE-8343 <https://issues.apache.org/jira/browse/LUCENE-8343> - to bring an improvement : LUCENE-8347 <https://issues.apache.org/jira/browse/LUCENE-8347>
I was reviewing the wiki documentation for the BlendedInfixSuggester[1]. This bit is incorrect or at least confusing : "position_linear weightFieldValue * (1 - 0.10*position): Matches to the start will be given a higher score. This is the default. position_reciprocal weightFieldValue / (1 + position): *Matches to the end will be given a higher score*. exponent An optional configuration variable for position_reciprocal to control how fast the score will increase or decrease. Default 2.0." 1) the *position_exponential_reciprocal* blenderType is missing ( it is the one the "exponent" apply to 2) It is not true that the position_reciprocal gives higher scores to matches in the end of a suggestion. All the blenderTypes boost matches at the beginning of the suggestions, the only difference is how fast the score of such terms decay with the position : e.g. Position Of First match = *0 | 1 | 2 | 3 |* Linear |1 | 0.9|0.8|0.7 Reciprocal |1 | 1/2|1/3|1/4 Exponential Reciprocal |1 | 1/4|1/8|1/16 I would be grateful if anyone can fix the documentation. Cheers [1] https://lucene.apache.org/solr/guide/7_3/suggester.html#blendedinfixlookupfactory ----- --------------- Alessandro Benedetti Search Consultant, R&D Software Engineer, Director Sease Ltd. - www.sease.io -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html