Skip to content

FreeTextSearchDbFunctionsExtensions.FreeTextSearch

Mike King edited this page Sep 30, 2025 · 2 revisions

FreeTextSearchDbFunctionsExtensions.FreeTextSearch Method

Overloads
FreeTextSearch(this DbFunctions, object, string) Perform a free text search.
FreeTextSearch(this DbFunctions, object, string, bool) Perform a free text search.
FreeTextSearch(this DbFunctions, object, string, bool, int) Perform a free text search.
FreeTextSearch(this DbFunctions, object, string, int) Perform a free text search.

FreeTextSearchDbFunctionsExtensions.FreeTextSearch(this DbFunctions, object, string) Method

Perform a free text search.

public static bool FreeTextSearch(this Microsoft.EntityFrameworkCore.DbFunctions dbFunctions, object propertyReference, string freeText);

Parameters

dbFunctions Microsoft.EntityFrameworkCore.DbFunctions

The Microsoft.EntityFrameworkCore.DbFunctions instance.

propertyReference System.Object

The property on which the search will be performed.

freeText System.String

The text that will be searched for in the property.

Returns

System.Boolean
A System.Boolean value indicating whether the text exists in the property.

FreeTextSearchDbFunctionsExtensions.FreeTextSearch(this DbFunctions, object, string, bool) Method

Perform a free text search.

public static bool FreeTextSearch(this Microsoft.EntityFrameworkCore.DbFunctions dbFunctions, object propertyReference, string freeText, bool useStemming);

Parameters

dbFunctions Microsoft.EntityFrameworkCore.DbFunctions

The Microsoft.EntityFrameworkCore.DbFunctions instance.

propertyReference System.Object

The property on which the search will be performed.

freeText System.String

The text that will be searched for in the property.

useStemming System.Boolean

A value indicating whether stemming will be used when searching.

Returns

System.Boolean
A System.Boolean value indicating whether the text exists in the property.

FreeTextSearchDbFunctionsExtensions.FreeTextSearch(this DbFunctions, object, string, bool, int) Method

Perform a free text search.

public static bool FreeTextSearch(this Microsoft.EntityFrameworkCore.DbFunctions dbFunctions, object propertyReference, string freeText, bool useStemming, int languageTerm);

Parameters

dbFunctions Microsoft.EntityFrameworkCore.DbFunctions

The Microsoft.EntityFrameworkCore.DbFunctions instance.

propertyReference System.Object

The property on which the search will be performed.

freeText System.String

The text that will be searched for in the property.

useStemming System.Boolean

A value indicating whether stemming will be used when searching.

languageTerm System.Int32

A Language ID from the sys.syslanguages table (SQL Server only).

Returns

System.Boolean
A System.Boolean value indicating whether the text exists in the property.

FreeTextSearchDbFunctionsExtensions.FreeTextSearch(this DbFunctions, object, string, int) Method

Perform a free text search.

public static bool FreeTextSearch(this Microsoft.EntityFrameworkCore.DbFunctions dbFunctions, object propertyReference, string freeText, int languageTerm);

Parameters

dbFunctions Microsoft.EntityFrameworkCore.DbFunctions

The Microsoft.EntityFrameworkCore.DbFunctions instance.

propertyReference System.Object

The property on which the search will be performed.

freeText System.String

The text that will be searched for in the property.

languageTerm System.Int32

A Language ID from the sys.syslanguages table (SQL Server only).

Returns

System.Boolean
A System.Boolean value indicating whether the text exists in the property.

Clone this wiki locally