Class SuggestBuilder

  • All Implemented Interfaces:
    Writeable, ToXContent, ToXContentObject

    public class SuggestBuilder
    extends Object
    implements Writeable, ToXContentObject
    Defines how to perform suggesting. This builders allows a number of global options to be specified and an arbitrary number of SuggestionBuilder instances.

    Suggesting works by suggesting terms/phrases that appear in the suggest text that are similar compared to the terms in provided text. These suggestions are based on several options described in this class.