Class TopSuggestDocs.SuggestScoreDoc
java.lang.Object
org.apache.lucene.search.ScoreDoc
org.apache.lucene.search.suggest.document.TopSuggestDocs.SuggestScoreDoc
- All Implemented Interfaces:
Comparable<TopSuggestDocs.SuggestScoreDoc>
- Enclosing class:
- TopSuggestDocs
public static class TopSuggestDocs.SuggestScoreDoc
extends ScoreDoc
implements Comparable<TopSuggestDocs.SuggestScoreDoc>
ScoreDoc
with an additional CharSequence key-
Field Summary
Modifier and TypeFieldDescriptionfinal CharSequence
Context for the completionfinal CharSequence
Matched completion keyFields inherited from class org.apache.lucene.search.ScoreDoc
doc, score, shardIndex
-
Constructor Summary
ConstructorDescriptionSuggestScoreDoc
(int doc, CharSequence key, CharSequence context, float score) Creates a SuggestScoreDoc instance -
Method Summary
-
Field Details
-
key
Matched completion key -
context
Context for the completion
-
-
Constructor Details
-
SuggestScoreDoc
Creates a SuggestScoreDoc instance- Parameters:
doc
- document id (hit)key
- matched completionscore
- weight of the matched completion
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<TopSuggestDocs.SuggestScoreDoc>
-
equals
-
hashCode
public int hashCode() -
toString
-