org.apache.nutch.indexer
Class NutchSimilarity
java.lang.Object
org.apache.lucene.search.Similarity
org.apache.lucene.search.DefaultSimilarity
org.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
Method Summary |
float |
coord(int overlap,
int maxOverlap)
|
float |
lengthNorm(String fieldName,
int numTokens)
Normalize field by length. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NutchSimilarity
public NutchSimilarity()
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 © 2005 The Apache Software Foundation