Class SuggestionSearchContext.SuggestionContext

java.lang.Object
org.opensearch.search.suggest.SuggestionSearchContext.SuggestionContext
Direct Known Subclasses:
CompletionSuggestionContext
Enclosing class:
SuggestionSearchContext

@PublicApi(since="1.0.0") public abstract static class SuggestionSearchContext.SuggestionContext extends Object
The suggestion context
Opensearch.api:
  • Constructor Details

  • Method Details

    • getText

      public org.apache.lucene.util.BytesRef getText()
    • setText

      public void setText(org.apache.lucene.util.BytesRef text)
    • getPrefix

      public org.apache.lucene.util.BytesRef getPrefix()
    • setPrefix

      public void setPrefix(org.apache.lucene.util.BytesRef prefix)
    • getRegex

      public org.apache.lucene.util.BytesRef getRegex()
    • setRegex

      public void setRegex(org.apache.lucene.util.BytesRef regex)
    • getSuggester

    • getAnalyzer

      public org.apache.lucene.analysis.Analyzer getAnalyzer()
    • setAnalyzer

      public void setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
    • getField

      public String getField()
    • setField

      public void setField(String field)
    • getSize

      public int getSize()
    • setSize

      public void setSize(int size)
    • getShardSize

      public Integer getShardSize()
    • setShardSize

      public void setShardSize(int shardSize)
    • getShardContext

      public QueryShardContext getShardContext()
    • toString

      public String toString()
      Overrides:
      toString in class Object