Table of Contents

Enum NpgsqlTsRankingNormalization

Namespace
Microsoft.EntityFrameworkCore
Assembly
Npgsql.EntityFrameworkCore.PostgreSQL.dll

Specifies whether and how a document's length should impact its rank. This is used with the ranking functions in NpgsqlFullTextSearchLinqExtensions. See http://www.postgresql.org/docs/current/static/textsearch-controls.html#TEXTSEARCH-RANKING for more information about the behaviors that are controlled by this value.

[Flags]
public enum NpgsqlTsRankingNormalization

Fields

Default = 0

Ignores the document length.

DivideBy1PlusLogLength = 1

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

DivideByItselfPlusOne = 32

Divides the rank by itself + 1.

DivideByLength = 2

Divides the rank by the document length.

DivideByMeanHarmonicDistanceBetweenExtents = 4

Divides the rank by the mean harmonic distance between extents (this is implemented only by ts_rank_cd).

DivideByUniqueWordCount = 8

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

DividesBy1PlusLogUniqueWordCount = 16

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