Package | Description |
---|---|
org.apache.lucene.search.similarities |
This package contains the various ranking models that can be used in Lucene.
|
Modifier and Type | Method and Description |
---|---|
void |
MultiSimilarity.computeNorm(FieldInvertState state,
Norm norm) |
void |
PerFieldSimilarityWrapper.computeNorm(FieldInvertState state,
Norm norm) |
abstract void |
Similarity.computeNorm(FieldInvertState state,
Norm norm)
Computes the normalization value for a field, given the accumulated
state of term processing for this field (see
FieldInvertState ). |
void |
SimilarityBase.computeNorm(FieldInvertState state,
Norm norm)
Encodes the document length in the same way as
TFIDFSimilarity . |
void |
BM25Similarity.computeNorm(FieldInvertState state,
Norm norm) |
void |
DefaultSimilarity.computeNorm(FieldInvertState state,
Norm norm)
Implemented as
state.getBoost()*lengthNorm(numTerms) , where
numTerms is FieldInvertState.getLength() if DefaultSimilarity.setDiscountOverlaps(boolean) is false, else it's FieldInvertState.getLength() - FieldInvertState.getNumOverlap() . |
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.