org.tgels.search.rankingalgorithm
Class RankingScore

java.lang.Object
  extended by org.tgels.search.rankingalgorithm.RankingScore
All Implemented Interfaces:
java.io.Serializable

public class RankingScore
extends java.lang.Object
implements java.io.Serializable

A RankingScore object. Holds the scoring for a document. The most important attributes would be the score_f object and the document id, docid. Use RankingHits to get at the score, do not access directly as it can change.

Author:
Nagendra Nagarajayya
See Also:
RankingQuery, RankingHits, Serialized Form

Field Summary
 int docid
           
static int maxTerms
           
 float ppositions1_l
           
 byte relevant
           
 
Constructor Summary
RankingScore()
           
 
Method Summary
static int compare(RankingScore s1, RankingScore s2)
           
static int compare(java.lang.String s1, java.lang.String s2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxTerms

public static final int maxTerms
See Also:
Constant Field Values

relevant

public byte relevant

docid

public int docid

ppositions1_l

public float ppositions1_l
Constructor Detail

RankingScore

public RankingScore()
Method Detail

compare

public static int compare(java.lang.String s1,
                          java.lang.String s2)

compare

public static int compare(RankingScore s1,
                          RankingScore s2)