public interface InputIterator extends BytesRefIterator
AnalyzingSuggester
, FuzzySuggester
and AnalyzingInfixSuggester
support payloads.Modifier and Type | Interface and Description |
---|---|
static class |
InputIterator.InputIteratorWrapper
Wraps a BytesRefIterator as a suggester InputIterator, with all weights
set to
1 and carries no payload |
Modifier and Type | Field and Description |
---|---|
static InputIterator |
EMPTY
Singleton InputIterator that iterates over 0 BytesRefs.
|
Modifier and Type | Method and Description |
---|---|
Set<BytesRef> |
contexts()
A term's contexts context can be used to filter suggestions.
|
boolean |
hasContexts()
Returns true if the iterator has contexts
|
boolean |
hasPayloads()
Returns true if the iterator has payloads
|
BytesRef |
payload()
An arbitrary byte[] to record per suggestion.
|
long |
weight()
A term's weight, higher numbers mean better suggestions.
|
next
static final InputIterator EMPTY
long weight()
BytesRef payload()
Lookup.LookupResult.payload
to retrieve the payload
for each suggestion.boolean hasPayloads()
Set<BytesRef> contexts()
boolean hasContexts()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.