Package org.elasticsearch.search.suggest
Class SuggestBuilders
java.lang.Object
org.elasticsearch.search.suggest.SuggestBuilders
A static factory for building suggester lookup queries
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompletionSuggestionBuilder
completionSuggestion(String fieldname)
Creates a completion suggestion lookup query with the providedfield
static PhraseSuggestionBuilder
phraseSuggestion(String fieldname)
Creates a phrase suggestion lookup query with the providedfield
static TermSuggestionBuilder
termSuggestion(String fieldname)
Creates a term suggestion lookup query with the providedfield
-
Constructor Details
-
SuggestBuilders
public SuggestBuilders()
-
-
Method Details
-
termSuggestion
Creates a term suggestion lookup query with the providedfield
- Returns:
- a
TermSuggestionBuilder
instance
-
phraseSuggestion
Creates a phrase suggestion lookup query with the providedfield
- Returns:
- a
PhraseSuggestionBuilder
instance
-
completionSuggestion
Creates a completion suggestion lookup query with the providedfield
- Returns:
- a
CompletionSuggestionBuilder
instance
-