Class CompletionSuggestionBuilder

  • All Implemented Interfaces:
    NamedWriteable, Writeable, ToXContent, ToXContentFragment

    public class CompletionSuggestionBuilder
    extends SuggestionBuilder<CompletionSuggestionBuilder>
    Defines a suggest command based on a prefix, typically to provide "auto-complete" functionality for users as they type search terms. The implementation of the completion service uses FSTs that are created at index-time and so must be defined in the mapping with the type "completion" before indexing.