Class NpgsqlFullTextSearchLinqExtensions
Provides EF Core extension methods for Npgsql full-text search types.
Inheritance
NpgsqlFullTextSearchLinqExtensions
Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
Syntax
public static class NpgsqlFullTextSearchLinqExtensions
Methods
|
Improve this Doc
View Source
And(NpgsqlTsQuery, NpgsqlTsQuery)
Declaration
public static NpgsqlTsQuery And(this NpgsqlTsQuery query1, NpgsqlTsQuery query2)
Parameters
Type |
Name |
Description |
NpgsqlTsQuery |
query1 |
|
NpgsqlTsQuery |
query2 |
|
Returns
Type |
Description |
NpgsqlTsQuery |
|
|
Improve this Doc
View Source
Concat(NpgsqlTsVector, NpgsqlTsVector)
Declaration
public static NpgsqlTsVector Concat(this NpgsqlTsVector vector1, NpgsqlTsVector vector2)
Parameters
Type |
Name |
Description |
NpgsqlTsVector |
vector1 |
|
NpgsqlTsVector |
vector2 |
|
Returns
Type |
Description |
NpgsqlTsVector |
|
|
Improve this Doc
View Source
Contains(NpgsqlTsQuery, NpgsqlTsQuery)
Declaration
public static bool Contains(this NpgsqlTsQuery query1, NpgsqlTsQuery query2)
Parameters
Type |
Name |
Description |
NpgsqlTsQuery |
query1 |
|
NpgsqlTsQuery |
query2 |
|
Returns
|
Improve this Doc
View Source
Delete(NpgsqlTsVector, string)
Declaration
public static NpgsqlTsVector Delete(this NpgsqlTsVector vector, string lexeme)
Parameters
Type |
Name |
Description |
NpgsqlTsVector |
vector |
|
string |
lexeme |
|
Returns
Type |
Description |
NpgsqlTsVector |
|
|
Improve this Doc
View Source
Delete(NpgsqlTsVector, string[])
Declaration
public static NpgsqlTsVector Delete(this NpgsqlTsVector vector, string[] lexemes)
Parameters
Type |
Name |
Description |
NpgsqlTsVector |
vector |
|
string[] |
lexemes |
|
Returns
Type |
Description |
NpgsqlTsVector |
|
|
Improve this Doc
View Source
Filter(NpgsqlTsVector, char[])
Declaration
public static NpgsqlTsVector Filter(this NpgsqlTsVector vector, char[] weights)
Parameters
Type |
Name |
Description |
NpgsqlTsVector |
vector |
|
char[] |
weights |
|
Returns
Type |
Description |
NpgsqlTsVector |
|
|
Improve this Doc
View Source
GetLength(NpgsqlTsVector)
Declaration
public static int GetLength(this NpgsqlTsVector vector)
Parameters
Type |
Name |
Description |
NpgsqlTsVector |
vector |
|
Returns
|
Improve this Doc
View Source
GetNodeCount(NpgsqlTsQuery)
Declaration
public static int GetNodeCount(this NpgsqlTsQuery query)
Parameters
Type |
Name |
Description |
NpgsqlTsQuery |
query |
|
Returns
|
Improve this Doc
View Source
GetQueryTree(NpgsqlTsQuery)
Declaration
public static string GetQueryTree(this NpgsqlTsQuery query)
Parameters
Type |
Name |
Description |
NpgsqlTsQuery |
query |
|
Returns
|
Improve this Doc
View Source
GetResultHeadline(NpgsqlTsQuery, string, string, string)
Declaration
public static string GetResultHeadline(this NpgsqlTsQuery query, string config, string document, string options)
Parameters
Returns
|
Improve this Doc
View Source
GetResultHeadline(NpgsqlTsQuery, string, string)
Declaration
public static string GetResultHeadline(this NpgsqlTsQuery query, string document, string options)
Parameters
Type |
Name |
Description |
NpgsqlTsQuery |
query |
|
string |
document |
|
string |
options |
|
Returns
|
Improve this Doc
View Source
GetResultHeadline(NpgsqlTsQuery, string)
Declaration
public static string GetResultHeadline(this NpgsqlTsQuery query, string document)
Parameters
Type |
Name |
Description |
NpgsqlTsQuery |
query |
|
string |
document |
|
Returns
|
Improve this Doc
View Source
IsContainedIn(NpgsqlTsQuery, NpgsqlTsQuery)
Declaration
public static bool IsContainedIn(this NpgsqlTsQuery query1, NpgsqlTsQuery query2)
Parameters
Type |
Name |
Description |
NpgsqlTsQuery |
query1 |
|
NpgsqlTsQuery |
query2 |
|
Returns
|
Improve this Doc
View Source
Matches(NpgsqlTsVector, NpgsqlTsQuery)
Declaration
public static bool Matches(this NpgsqlTsVector vector, NpgsqlTsQuery query)
Parameters
Type |
Name |
Description |
NpgsqlTsVector |
vector |
|
NpgsqlTsQuery |
query |
|
Returns
|
Improve this Doc
View Source
Matches(NpgsqlTsVector, string)
Declaration
public static bool Matches(this NpgsqlTsVector vector, string query)
Parameters
Type |
Name |
Description |
NpgsqlTsVector |
vector |
|
string |
query |
|
Returns
|
Improve this Doc
View Source
Or(NpgsqlTsQuery, NpgsqlTsQuery)
Declaration
public static NpgsqlTsQuery Or(this NpgsqlTsQuery query1, NpgsqlTsQuery query2)
Parameters
Type |
Name |
Description |
NpgsqlTsQuery |
query1 |
|
NpgsqlTsQuery |
query2 |
|
Returns
Type |
Description |
NpgsqlTsQuery |
|
|
Improve this Doc
View Source
Rank(NpgsqlTsVector, NpgsqlTsQuery, NpgsqlTsRankingNormalization)
Declaration
public static float Rank(this NpgsqlTsVector vector, NpgsqlTsQuery query, NpgsqlTsRankingNormalization normalization)
Parameters
Returns
|
Improve this Doc
View Source
Rank(NpgsqlTsVector, NpgsqlTsQuery)
Declaration
public static float Rank(this NpgsqlTsVector vector, NpgsqlTsQuery query)
Parameters
Type |
Name |
Description |
NpgsqlTsVector |
vector |
|
NpgsqlTsQuery |
query |
|
Returns
|
Improve this Doc
View Source
Rank(NpgsqlTsVector, float[], NpgsqlTsQuery, NpgsqlTsRankingNormalization)
Declaration
public static float Rank(this NpgsqlTsVector vector, float[] weights, NpgsqlTsQuery query, NpgsqlTsRankingNormalization normalization)
Parameters
Returns
|
Improve this Doc
View Source
Rank(NpgsqlTsVector, float[], NpgsqlTsQuery)
Declaration
public static float Rank(this NpgsqlTsVector vector, float[] weights, NpgsqlTsQuery query)
Parameters
Type |
Name |
Description |
NpgsqlTsVector |
vector |
|
float[] |
weights |
|
NpgsqlTsQuery |
query |
|
Returns
|
Improve this Doc
View Source
RankCoverDensity(NpgsqlTsVector, NpgsqlTsQuery, NpgsqlTsRankingNormalization)
Declaration
public static float RankCoverDensity(this NpgsqlTsVector vector, NpgsqlTsQuery query, NpgsqlTsRankingNormalization normalization)
Parameters
Returns
|
Improve this Doc
View Source
RankCoverDensity(NpgsqlTsVector, NpgsqlTsQuery)
Declaration
public static float RankCoverDensity(this NpgsqlTsVector vector, NpgsqlTsQuery query)
Parameters
Type |
Name |
Description |
NpgsqlTsVector |
vector |
|
NpgsqlTsQuery |
query |
|
Returns
|
Improve this Doc
View Source
RankCoverDensity(NpgsqlTsVector, float[], NpgsqlTsQuery, NpgsqlTsRankingNormalization)
Declaration
public static float RankCoverDensity(this NpgsqlTsVector vector, float[] weights, NpgsqlTsQuery query, NpgsqlTsRankingNormalization normalization)
Parameters
Returns
|
Improve this Doc
View Source
RankCoverDensity(NpgsqlTsVector, float[], NpgsqlTsQuery)
Declaration
public static float RankCoverDensity(this NpgsqlTsVector vector, float[] weights, NpgsqlTsQuery query)
Parameters
Type |
Name |
Description |
NpgsqlTsVector |
vector |
|
float[] |
weights |
|
NpgsqlTsQuery |
query |
|
Returns
|
Improve this Doc
View Source
Rewrite(NpgsqlTsQuery, NpgsqlTsQuery, NpgsqlTsQuery)
Declaration
public static NpgsqlTsQuery Rewrite(this NpgsqlTsQuery query, NpgsqlTsQuery target, NpgsqlTsQuery substitute)
Parameters
Type |
Name |
Description |
NpgsqlTsQuery |
query |
|
NpgsqlTsQuery |
target |
|
NpgsqlTsQuery |
substitute |
|
Returns
Type |
Description |
NpgsqlTsQuery |
|
|
Improve this Doc
View Source
SetWeight(NpgsqlTsVector, Weight, string[])
Declaration
public static NpgsqlTsVector SetWeight(this NpgsqlTsVector vector, NpgsqlTsVector.Lexeme.Weight weight, string[] lexemes)
Parameters
Type |
Name |
Description |
NpgsqlTsVector |
vector |
|
NpgsqlTsVector.Lexeme.Weight |
weight |
|
string[] |
lexemes |
|
Returns
Type |
Description |
NpgsqlTsVector |
|
|
Improve this Doc
View Source
SetWeight(NpgsqlTsVector, Weight)
Declaration
public static NpgsqlTsVector SetWeight(this NpgsqlTsVector vector, NpgsqlTsVector.Lexeme.Weight weight)
Parameters
Type |
Name |
Description |
NpgsqlTsVector |
vector |
|
NpgsqlTsVector.Lexeme.Weight |
weight |
|
Returns
Type |
Description |
NpgsqlTsVector |
|
|
Improve this Doc
View Source
SetWeight(NpgsqlTsVector, char, string[])
Declaration
public static NpgsqlTsVector SetWeight(this NpgsqlTsVector vector, char weight, string[] lexemes)
Parameters
Type |
Name |
Description |
NpgsqlTsVector |
vector |
|
char |
weight |
|
string[] |
lexemes |
|
Returns
Type |
Description |
NpgsqlTsVector |
|
|
Improve this Doc
View Source
SetWeight(NpgsqlTsVector, char)
Declaration
public static NpgsqlTsVector SetWeight(this NpgsqlTsVector vector, char weight)
Parameters
Type |
Name |
Description |
NpgsqlTsVector |
vector |
|
char |
weight |
|
Returns
Type |
Description |
NpgsqlTsVector |
|
|
Improve this Doc
View Source
ToNegative(NpgsqlTsQuery)
Declaration
public static NpgsqlTsQuery ToNegative(this NpgsqlTsQuery query)
Parameters
Type |
Name |
Description |
NpgsqlTsQuery |
query |
|
Returns
Type |
Description |
NpgsqlTsQuery |
|
|
Improve this Doc
View Source
ToPhrase(NpgsqlTsQuery, NpgsqlTsQuery, int)
Declaration
public static NpgsqlTsQuery ToPhrase(this NpgsqlTsQuery query1, NpgsqlTsQuery query2, int distance)
Parameters
Type |
Name |
Description |
NpgsqlTsQuery |
query1 |
|
NpgsqlTsQuery |
query2 |
|
int |
distance |
|
Returns
Type |
Description |
NpgsqlTsQuery |
|
|
Improve this Doc
View Source
ToPhrase(NpgsqlTsQuery, NpgsqlTsQuery)
Declaration
public static NpgsqlTsQuery ToPhrase(this NpgsqlTsQuery query1, NpgsqlTsQuery query2)
Parameters
Type |
Name |
Description |
NpgsqlTsQuery |
query1 |
|
NpgsqlTsQuery |
query2 |
|
Returns
Type |
Description |
NpgsqlTsQuery |
|
|
Improve this Doc
View Source
ToStripped(NpgsqlTsVector)
Declaration
public static NpgsqlTsVector ToStripped(this NpgsqlTsVector vector)
Parameters
Type |
Name |
Description |
NpgsqlTsVector |
vector |
|
Returns
Type |
Description |
NpgsqlTsVector |
|