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