public static class TopSuggestDocs.SuggestScoreDoc extends ScoreDoc implements java.lang.Comparable<TopSuggestDocs.SuggestScoreDoc>
ScoreDoc
with an
additional CharSequence keyModifier 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) |
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
java.lang.String |
toString() |
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>
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.