Click or drag to resize

FullTextParserParse Method

Turns a search expression into a phrase appropriate for use in a FREETEXTTABLE() or FREETEXT() expression.

Namespace:  NetQuarry.Parsing
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static string Parse(
	string searchExpr
)

Parameters

searchExpr
Type: SystemString

The search expression using the following rules:

Operator ExampleDescription
nutSearchs for the inflectional forms of the word nut.
crank arm
crank AND arm
Searchs for items containing inflectional forms of the words crank and arm. The keyword AND is optional.
tire OR airSearchs for items containing inflectional forms of the words tire OR air.
"reflector bracket"Performs a phrase search for the phrase "reflector bracket"
hardware -bracketSearchs for items containing inflectional forms of the word hardware but not the word bracket.
+clampSearches for the word clamp without generating inflectional forms.
~carSearches for thesaurus forms of the word car (vehicle, auto, automobile).
assemb*Searches for words that begin with assemb
<washer nut>Searches for items that contain the word washer in close proximity to the word nut.

Return Value

Type: String
A search expression appropriate for use in a FREETEXTTABLE() or FREETEXT() expression.
Remarks
The current grammar is A Google-like Full Text Search based on the original project by Michael Coles http://www.sqlservercentral.com/articles/Full-Text+Search+(2008)/64248/ slightly revised to work with the more recent version of Irony used by the platform.
See Also