Method Text
Text(string)
Generate a text search query that tests whether the given search string is present.
public static IMongoQuery Text(string searchString)
Parameters
searchString
stringThe search string.
Returns
- IMongoQuery
An IMongoQuery that represents the text search.
Text(string, string)
Generate a text search query that tests whether the given search string is present using the specified language's rules. Specifies use of language appropriate stop words, stemming rules etc.
public static IMongoQuery Text(string searchString, string language)
Parameters
Returns
- IMongoQuery
An IMongoQuery that represents the text search for the particular language.
Text(string, TextSearchOptions)
Generate a text search query that tests whether the given search string is present using the specified language's rules. Specifies use of language appropriate stop words, stemming rules etc.
public static IMongoQuery Text(string searchString, TextSearchOptions options)
Parameters
searchString
stringThe search string.
options
TextSearchOptionsThe text search options.
Returns
- IMongoQuery
An IMongoQuery that represents the text search for the particular language.