fertriver.blogg.se

Solr suggester
Solr suggester











solr suggester

This is achievable calculating an additional coefficient, dependant on the term counts :

solr suggester

We also don’t want to bring strong inconsistencies for the other suggestions, we should ideally only affect the ties. Ideally we want our top scoring suggestion to just have the matched terms if possible. Intuitively we want this order to break the ties.Ĭloser the number of matched terms with the total number of terms for the suggestion, the better. Let’s focus on the first three ranking suggestions we just saw : There is still a tie for the exact prefix matches, but let’s see if we can finalise that improvement as well. The results obtained were quite promising :ġ00 | Mini Bar Fridge a a a a a a a a a a a a a a a a a a a a a a Introducing this advanced positional coefficient calculus helped in improving the overall behavior for the experimental test created. If we compare the suggestion score for both these queries, it would seem unfair to penalise the first one just because it matches 2 terms ( consecutive) while the second query has just one match ( positioned worst than the first match in query1)

solr suggester

Query 2 Suggestion Matched Terms positions : Query 1 Suggestion Matched Terms positions :

  • Suggestion 2 will be additionally penalised as the first mis-match in positions Bar happens closer to the beginning of the suggestionĬonsidering only the discountinue position proved useful :.
  • Suggestion 2 : Mini something Bar Fridge, Matched Positions:.
  • Earlier the mis-position happened, stronger the penalty for the score to pay.
  • Suggestion 2 will be penalised as “Fri” match happens farer ( 4 > 3) from the ideal position 2.
  • Suggestion 2 : Mini Bar something else Fridge, Matched Positions:.
  • Suggestion 1 : Mini Bar something Fridge, Matched Positions:.
  • Query : Mini Bar Fri, Ideal Positions :.
  • How much the matched term position is distant from the ideal position match.
  • Įach position match will affect the score with : Instead of taking into account just the first term position in the suggestion, it’s possible to use all the matching positions from the matched terms.













    Solr suggester