Liferay 6.1.2-ce-ga3

com.liferay.portal.search.lucene
Class FieldWeightSimilarity

java.lang.Object
  extended by org.apache.lucene.search.Similarity
      extended by org.apache.lucene.search.DefaultSimilarity
          extended by com.liferay.portal.search.lucene.FieldWeightSimilarity
All Implemented Interfaces:
Serializable

public class FieldWeightSimilarity
extends org.apache.lucene.search.DefaultSimilarity

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.lucene.search.DefaultSimilarity
discountOverlaps
 
Fields inherited from class org.apache.lucene.search.Similarity
NO_DOC_ID_PROVIDED
 
Constructor Summary
FieldWeightSimilarity()
           
 
Method Summary
 float coord(int overlap, int maxOverlap)
           
 float idf(int docFreq, int numDocs)
           
 float queryNorm(float sumOfSquaredWeights)
           
 
Methods inherited from class org.apache.lucene.search.DefaultSimilarity
computeNorm, getDiscountOverlaps, setDiscountOverlaps, sloppyFreq, tf
 
Methods inherited from class org.apache.lucene.search.Similarity
decodeNorm, decodeNormValue, encodeNorm, encodeNormValue, getDefault, getNormDecoder, idfExplain, idfExplain, idfExplain, lengthNorm, scorePayload, setDefault, tf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldWeightSimilarity

public FieldWeightSimilarity()
Method Detail

coord

public float coord(int overlap,
                   int maxOverlap)
Overrides:
coord in class org.apache.lucene.search.DefaultSimilarity

idf

public float idf(int docFreq,
                 int numDocs)
Overrides:
idf in class org.apache.lucene.search.DefaultSimilarity

queryNorm

public float queryNorm(float sumOfSquaredWeights)
Overrides:
queryNorm in class org.apache.lucene.search.DefaultSimilarity

Liferay 6.1.2-ce-ga3