com.lucene.search
Class Similarity

java.lang.Object
  |
  +--com.lucene.search.Similarity

public final class Similarity
extends Object

Internal class used for scoring.

Public only so that the indexing code can compute and store the normalization byte for each document.


Method Summary
static byte norm(int numTerms)
          Computes the normalization byte for a document given the total number of terms contained in the document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

norm

public static final byte norm(int numTerms)
Computes the normalization byte for a document given the total number of terms contained in the document. These values are stored in an index and used by the search code.