: I was wondering why TF method gets a float parameter. Isn't frequency : always considered to be integer? : : public abstract float tf(float freq)
Take a look at how PhraseQuery and SPanNearQuery use tf(float). For simple terms (and TermQuery) tf is always an integer, but when dealing with phrases the concept of a "sloppy match" (ie: a phrase with a gap in the middle) results in a fractional "frequency" value because it is not as good as an "exact" match on the phrase (which does result in an integer tf value) -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
