public class RankedRecord extends Object implements Comparable<RankedRecord>, Serializable
| Constructor and Description |
|---|
RankedRecord(String id,
Long position,
Float rank,
Integer luceneDocID) |
RankedRecord(String id,
Long position,
Float rank,
Integer luceneDocID,
Boolean includePosition) |
| Modifier and Type | Method and Description |
|---|---|
static Float |
calcScore(RankedRecord r)
Calculates the score of the record.
|
int |
compareTo(RankedRecord r) |
boolean |
equals(Object obj) |
Integer |
getLuceneDocID() |
int |
hashCode() |
static List<RankedRecord> |
recalculateScores(Map<String,Long> recPositions,
Map<String,Pair> recScores,
Boolean includePosition)
Recalculates the score of the records that are retrieved after querying the lucene index in order to
perform some other refinements.
|
String |
toString() |
public RankedRecord(String id, Long position, Float rank, Integer luceneDocID, Boolean includePosition)
public Integer getLuceneDocID()
public int compareTo(RankedRecord r)
compareTo in interface Comparable<RankedRecord>public static Float calcScore(RankedRecord r)
RankedRecord#posScore, else
rank is returned.r - public static List<RankedRecord> recalculateScores(Map<String,Long> recPositions, Map<String,Pair> recScores, Boolean includePosition)
recPositions - recScores - includePosition - RankedRecordsCopyright © 2016. All Rights Reserved.