com.transaxtions.search.rankingalgorithm
Class RankingScore

java.lang.Object
  extended by com.transaxtions.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
 org.apache.lucene.document.Document doc
           
 int docid
           
 double foc
           
 int[] freq
           
 long fscore
           
 long fscore1
           
static int maxTerms
           
 int numTerms
           
 int[] occurence
           
 double occurence_l
           
 java.util.ArrayList[] pos
           
 int[] ppositions1
           
 double ppositions1_l
           
 int[] ppositions2
           
 double ppositions2_l
           
 long pscore
           
 long pscore1
           
 int relevant
           
 java.lang.String score
           
 double score_f
           
 int startpos
           
 int[] terms
           
 int tscore
           
 
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

terms

public int[] terms

pos

public java.util.ArrayList[] pos

numTerms

public int numTerms

freq

public int[] freq

startpos

public int startpos

score

public java.lang.String score

tscore

public int tscore

pscore

public long pscore

pscore1

public long pscore1

fscore

public long fscore

fscore1

public long fscore1

docid

public int docid

relevant

public int relevant

score_f

public double score_f

doc

public org.apache.lucene.document.Document doc

ppositions1

public int[] ppositions1

ppositions1_l

public double ppositions1_l

ppositions2

public int[] ppositions2

ppositions2_l

public double ppositions2_l

occurence

public int[] occurence

occurence_l

public double occurence_l

foc

public double foc
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)