org.apache.lucene.search.suggest
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 |
EMPTY| Modifier and Type | Method and Description |
|---|---|
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.
|
getComparator, nextlong weight()
BytesRef payload()
Lookup.LookupResult.payload to retrieve the payload
for each suggestion.boolean hasPayloads()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.