Fuzzy options on CompletionSuggestionBuilder - migration from 2.5 -> 5.6

Hi everyone,

I am trying migrate es from version 2.4 to 5.6 and I have problem with understanding fuzzy options in CompletionSuggestionBuilder. Before upgrade we used api in the way

CompletionSuggestionFuzzyBuilder(suggestion.name).text(suggestion.text).size(suggestion.size)

Of course I had to adjust name which is now parameter in SuggestBuilder.addSuggestion. During next step I'd like to adjust fuzzy options. In 5.6 java client I don't have CompletionSuggestionFuzzyBuilder, but I can set Fuzziness in CompletionSuggestionBuilder. My question is :

  1. Why is it possible only in method prefix?
  2. (maybe related) What is the difference between method text and prefix. (earlier we used text method).

I've tried to find useful information in documentation, release notes etc, also analyzed code but it is hard, because changes in this module (suggestions) are huge.
Thanks for your help!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.