public class BinarySimilarity
extends org.apache.lucene.search.similarities.DefaultSimilarity
| Constructor and Description |
|---|
BinarySimilarity()
Simple default constructor for
BinarySimilarity. |
| Modifier and Type | Method and Description |
|---|---|
float |
tf(float freq)
Ignores multiple appearance of the query term in the index
document field, effectively making TF (term frequency) a
yes/no proposition (i.e., zero is still zero, but you don't
get extra points for a query term being found multiple times in
an index document field).
|
coord, decodeNormValue, encodeNormValue, getDiscountOverlaps, idf, lengthNorm, queryNorm, scorePayload, setDiscountOverlaps, sloppyFreq, toStringpublic BinarySimilarity()
BinarySimilarity.public float tf(float freq)
tf in class org.apache.lucene.search.similarities.DefaultSimilarityfreq - floating-point number being converted to 1.0 or 0.0Copyright © 2012–2014 Berico Technologies. All rights reserved.