Enum NpgsqlTsRankingNormalization
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.
Namespace: Microsoft.EntityFrameworkCore
Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
Syntax
public enum NpgsqlTsRankingNormalization
Fields
Name | Description |
---|---|
Default | Ignores the document length. |
DivideBy1PlusLogLength | Divides the rank by 1 + the logarithm of the document length. |
DivideByItselfPlusOne | Divides the rank by itself + 1. |
DivideByLength | Divides the rank by the document length. |
DivideByMeanHarmonicDistanceBetweenExtents | Divides the rank by the mean harmonic distance between extents (this is implemented only by ts_rank_cd). |
DivideByUniqueWordCount | Divides the rank by the number of unique words in document. |
DividesBy1PlusLogUniqueWordCount | Divides the rank by 1 + the logarithm of the number of unique words in document. |