| Package | Description |
|---|---|
| org.apache.lucene.misc |
Miscellaneous index tools.
|
| org.apache.lucene.search |
Code to search indices.
|
| Modifier and Type | Method and Description |
|---|---|
float |
SweetSpotSimilarity.computeNorm(String fieldName,
FieldInvertState state)
Implemented as
state.getBoost() *
lengthNorm(fieldName, numTokens) where
numTokens does not count overlap tokens if
discountOverlaps is true by default or true for this
specific field. |
| Modifier and Type | Method and Description |
|---|---|
float |
SimilarityDelegator.computeNorm(String fieldName,
FieldInvertState state)
Deprecated.
|
abstract float |
Similarity.computeNorm(String field,
FieldInvertState state)
Computes the normalization value for a field, given the accumulated
state of term processing for this field (see
FieldInvertState). |
float |
DefaultSimilarity.computeNorm(String field,
FieldInvertState state)
Implemented as
state.getBoost()*lengthNorm(numTerms), where
numTerms is getLength() if DefaultSimilarity.setDiscountOverlaps(boolean) is false, else it's getLength() - getNumOverlap(). |