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