Idf Enumeration

Determines the calculation method Sphinx uses for the idf (Inverse Document Frequency).

Definition

Namespace: SphinxConnector.Common
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
public enum Idf

Remarks

Supported with Sphinx 2.1.1 and up.

Members

Normalized0 BM25 variant, idf = log((N-n+1)/n), as per Robertson et al where N is the collection size and n is the number of matched documents.
Plain1 Plain variant, idf=log(N/n), as per Sparck-Jones where N is the collection size and n is the number of matched documents.

See Also