PgTsRankNormalization
Namespace: Ankus
Assembly: Ankus.Runtime.dll
Normalizes a rank by document length, as the normalization argument of ts_rank does.
[Flags]public enum PgTsRankNormalizationFields
Section titled “Fields”Length
Section titled “Length”Divides the rank by the document length.
Length = 2LogLength
Section titled “LogLength”Divides the rank by 1 + the logarithm of the document length.
LogLength = 1LogUniqueWords
Section titled “LogUniqueWords”Divides the rank by 1 + the logarithm of the number of unique words in the document.
LogUniqueWords = 16MeanDistance
Section titled “MeanDistance”Divides the rank by the mean harmonic distance between extents; only cover density ranking uses it.
MeanDistance = 4Ignores the document length.
None = 0RankPlusOne
Section titled “RankPlusOne”Divides the rank by itself + 1.
RankPlusOne = 32UniqueWords
Section titled “UniqueWords”Divides the rank by the number of unique words in the document.
UniqueWords = 8