Class CompletionSuggestionBuilder

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