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 |
---|---|
long |
PerFieldSimilarityWrapper.computeNorm(FieldInvertState state) |
long |
BM25Similarity.computeNorm(FieldInvertState state) |
long |
TFIDFSimilarity.computeNorm(FieldInvertState state) |
long |
SimilarityBase.computeNorm(FieldInvertState state)
Encodes the document length in the same way as
TFIDFSimilarity . |
long |
MultiSimilarity.computeNorm(FieldInvertState state) |
abstract long |
Similarity.computeNorm(FieldInvertState state)
Computes the normalization value for a field, given the accumulated
state of term processing for this field (see
FieldInvertState ). |
float |
ClassicSimilarity.lengthNorm(FieldInvertState state)
Implemented as
state.getBoost()*lengthNorm(numTerms) , where
numTerms is getLength() if ClassicSimilarity.setDiscountOverlaps(boolean) is false, else it's getLength() - getNumOverlap() . |
abstract float |
TFIDFSimilarity.lengthNorm(FieldInvertState state)
Compute an index-time normalization value for this field instance.
|
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.