TypeOfSearch
Property
Description:
This property can have four different values:
-
AnyWord
- control creates query that returns records which contain any of the
search terms
-
AllWords
- returns only the records that contain all requested words
-
ExactPhrase
- returns the records that contains exact string, including spaces.
-
SearchExpression -
this type of searching is similar to Google's. User can insert something like
“(apple or banana) and not kiwi”. Returned records will be correct for person
who likes apples or bananas but not kiwi. This search option is customizable
and you can set keywords “AND” “OR” and “NOT” to your language.
Data type:
enuTypeOfSearch
Default value: enuTypeOfSearch.ExactPhrase
Example:
To return database table rows that contains any of
search words use:
SearchControl1.TypeOfSearch = enuTypeOfSearch.AnyWord;
|