Class CustomSuggester
java.lang.Object
org.opensearch.search.suggest.Suggester<CustomSuggestionContext>
org.opensearch.example.customsuggester.CustomSuggester
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CustomSuggestionemptySuggestion(String name, CustomSuggestionContext suggestion, CharsRefBuilder spare) Suggest.Suggestion<? extends Suggest.Suggestion.Entry<? extends Suggest.Suggestion.Entry.Option>>innerExecute(String name, CustomSuggestionContext suggestion, org.apache.lucene.search.IndexSearcher searcher, CharsRefBuilder spare)
-
Constructor Details
-
CustomSuggester
public CustomSuggester()
-
-
Method Details
-
innerExecute
public Suggest.Suggestion<? extends Suggest.Suggestion.Entry<? extends Suggest.Suggestion.Entry.Option>> innerExecute(String name, CustomSuggestionContext suggestion, org.apache.lucene.search.IndexSearcher searcher, CharsRefBuilder spare) throws IOException - Specified by:
innerExecutein classSuggester<CustomSuggestionContext>- Throws:
IOException
-
emptySuggestion
protected CustomSuggestion emptySuggestion(String name, CustomSuggestionContext suggestion, CharsRefBuilder spare) throws IOException - Specified by:
emptySuggestionin classSuggester<CustomSuggestionContext>- Throws:
IOException
-