public static class TopSuggestDocs.SuggestScoreDoc extends ScoreDoc implements java.lang.Comparable<TopSuggestDocs.SuggestScoreDoc>
ScoreDoc with an
additional CharSequence key| Modifier and Type | Field and Description |
|---|---|
java.lang.CharSequence |
context
Context for the completion
|
java.lang.CharSequence |
key
Matched completion key
|
doc, score, shardIndex| Constructor and Description |
|---|
SuggestScoreDoc(int doc,
java.lang.CharSequence key,
java.lang.CharSequence context,
float score)
Creates a SuggestScoreDoc instance
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TopSuggestDocs.SuggestScoreDoc o) |
public final java.lang.CharSequence key
public final java.lang.CharSequence context
public SuggestScoreDoc(int doc,
java.lang.CharSequence key,
java.lang.CharSequence context,
float score)
doc - document id (hit)key - matched completionscore - weight of the matched completionpublic int compareTo(TopSuggestDocs.SuggestScoreDoc o)
compareTo in interface java.lang.Comparable<TopSuggestDocs.SuggestScoreDoc>Copyright © 2000–2017 The Apache Software Foundation. All rights reserved.