public static class TopSuggestDocs.SuggestScoreDoc extends ScoreDoc implements Comparable<TopSuggestDocs.SuggestScoreDoc>
ScoreDoc
with an
additional CharSequence keyModifier and Type | Field and Description |
---|---|
CharSequence |
key
Matched completion key
|
doc, score, shardIndex
Constructor and Description |
---|
TopSuggestDocs.SuggestScoreDoc(int doc,
CharSequence key,
long score)
Creates a SuggestScoreDoc instance
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TopSuggestDocs.SuggestScoreDoc o) |
public CharSequence key
public TopSuggestDocs.SuggestScoreDoc(int doc, CharSequence key, long score)
doc
- document id (hit)key
- matched completionscore
- weight of the matched completionpublic int compareTo(TopSuggestDocs.SuggestScoreDoc o)
compareTo
in interface Comparable<TopSuggestDocs.SuggestScoreDoc>
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.