Package org.elasticsearch.search.suggest
Class SuggestionSearchContext.SuggestionContext
java.lang.Object
org.elasticsearch.search.suggest.SuggestionSearchContext.SuggestionContext
- Direct Known Subclasses:
CompletionSuggestionContext
- Enclosing class:
- SuggestionSearchContext
-
Constructor Summary
ModifierConstructorDescriptionprotected
SuggestionContext(Suggester<?> suggester, SearchExecutionContext searchExecutionContext)
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.analysis.Analyzer
getField()
org.apache.lucene.util.BytesRef
org.apache.lucene.util.BytesRef
getRegex()
int
getSize()
org.apache.lucene.util.BytesRef
getText()
void
setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
void
void
setPrefix(org.apache.lucene.util.BytesRef prefix)
void
setRegex(org.apache.lucene.util.BytesRef regex)
void
setShardSize(int shardSize)
void
setSize(int size)
void
setText(org.apache.lucene.util.BytesRef text)
toString()
-
Constructor Details
-
SuggestionContext
-
-
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
-
setField
-
getSize
public int getSize() -
setSize
public void setSize(int size) -
getShardSize
-
setShardSize
public void setShardSize(int shardSize) -
getSearchExecutionContext
-
toString
-