public class IndexContext
extends java.lang.Object
| Constructor and Description |
|---|
IndexContext(SuggestionContext context)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
BytesRef |
content()
Returns the text context to be indexed
|
SuggestionContext |
getContext()
Returns the original context
|
java.util.Set<BytesRef> |
labels()
Returns the tags for that this element belongs to
|
BytesRef |
payload()
Returns the payload / key of instance
|
long |
weight()
Returns the index weight
|
public IndexContext(SuggestionContext context)
public SuggestionContext getContext()
public BytesRef content()
public BytesRef payload()
public java.util.Set<BytesRef> labels()
public long weight()
Data In Motion Consulting GmbH