public static class TopSuggestDocs.SuggestScoreDoc extends ScoreDoc implements Comparable<TopSuggestDocs.SuggestScoreDoc>
ScoreDoc
with an
additional CharSequence keyModifier and Type | Field and Description |
---|---|
CharSequence |
context
Context for the completion
|
CharSequence |
key
Matched completion key
|
doc, score, shardIndex
Constructor and Description |
---|
SuggestScoreDoc(int doc,
CharSequence key,
CharSequence context,
float score)
Creates a SuggestScoreDoc instance
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TopSuggestDocs.SuggestScoreDoc o) |
boolean |
equals(Object other) |
int |
hashCode() |
String |
toString() |
public final CharSequence key
public final CharSequence context
public SuggestScoreDoc(int doc, CharSequence key, CharSequence context, float 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-2019 Apache Software Foundation. All Rights Reserved.