Class CompletionSuggestionBuilder

java.lang.Object
org.elasticsearch.search.suggest.SuggestionBuilder<CompletionSuggestionBuilder>
org.elasticsearch.search.suggest.completion.CompletionSuggestionBuilder
All Implemented Interfaces:
NamedWriteable, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.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.