- getDefault
Return the default Similarity implementation used by indexing and search code.
This is initially an
- idf
Computes a score factor for a simple term.The default implementation is:
return idf(searcher.docFre
- tf
Computes a score factor based on a term or phrase's frequency in a document.
This value is multiplie
- decodeNorm
Decodes a normalization factor stored in an index.
- encodeNorm
Encodes a normalization factor for storage in an index.The encoding uses a
three-bit mantissa, a fiv
- sloppyFreq
Computes the amount of a sloppy phrase match, based on an edit distance. This
value is summed for ea
- coord
Computes a score factor based on the fraction of all query terms that a document
contains. This valu
- getNormDecoder
Returns a table for decoding normalization bytes.
- lengthNorm
Computes the normalization value for a field given the total number of terms
contained in a field. T
- queryNorm
Computes the normalization value for a query given the sum of the squared
weights of each of the que
- computeNorm
- encodeNormValue