org.apache.nutch.indexer
Class NutchSimilarity

java.lang.Object
  extended byorg.apache.lucene.search.Similarity
      extended byorg.apache.lucene.search.DefaultSimilarity
          extended byorg.apache.nutch.indexer.NutchSimilarity
All Implemented Interfaces:
Serializable

public class NutchSimilarity
extends DefaultSimilarity

Similarity implementatation used by Nutch indexing and search.

See Also:
Serialized Form

Constructor Summary
NutchSimilarity()
           
 
Method Summary
 float coord(int overlap, int maxOverlap)
           
 float lengthNorm(String fieldName, int numTokens)
          Normalize field by length.
 
Methods inherited from class org.apache.lucene.search.DefaultSimilarity
idf, queryNorm, sloppyFreq, tf
 
Methods inherited from class org.apache.lucene.search.Similarity
decodeNorm, encodeNorm, getDefault, getNormDecoder, idf, idf, setDefault, tf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NutchSimilarity

public NutchSimilarity()
Method Detail

lengthNorm

public float lengthNorm(String fieldName,
                        int numTokens)
Normalize field by length. Called at index time.


coord

public float coord(int overlap,
                   int maxOverlap)


Copyright © 2006 The Apache Software Foundation