Skip to content

PgTsRankNormalization

Namespace: Ankus

Assembly: Ankus.Runtime.dll

Normalizes a rank by document length, as the normalization argument of ts_rank does.

[Flags]
public enum PgTsRankNormalization

Divides the rank by the document length.

Length = 2

Divides the rank by 1 + the logarithm of the document length.

LogLength = 1

Divides the rank by 1 + the logarithm of the number of unique words in the document.

LogUniqueWords = 16

Divides the rank by the mean harmonic distance between extents; only cover density ranking uses it.

MeanDistance = 4

Ignores the document length.

None = 0

Divides the rank by itself + 1.

RankPlusOne = 32

Divides the rank by the number of unique words in the document.

UniqueWords = 8