Set the AnyField expression.
| Visual Basic |
|---|
Public Sub SetAnyFieldExpression( _ ByVal FullTextSearchFlags As MFFullTextSearchFlags _ ) |
| Value | Description |
|---|---|
| MFFullTextSearchFlagsLookInFileData | Looks for matches in the file data of objects. |
| MFFullTextSearchFlagsLookInMetaData | Looks for matches in the metadata (properties) of objects. |
| MFFullTextSearchFlagsNone | None (indicates a basic Boolean search). |
| MFFullTextSearchFlagsStemming | Enables stemming for all words in the search request. This includes inflected forms of the searched word. |
| MFFullTextSearchFlagsTypeAllWords | Finds all of the words in the search request. |
| MFFullTextSearchFlagsTypeAnyWords | Finds any of the words in the search request. |
Use this method to define an expression for a full text search. The expression contains flags for the full text search, and the SearchCondition object encapsulating the expression contains the searched text as a TypedValue object. The TypedValue needs to be MFDatatypeText.
When using a full-text search, the ConditionType in the parent SearchCondition object needs to be MFConditionTypeContains.
You can combine multiple search flags with a bitwise-OR operator.
When using the Smart Search index, either the MFFullTextSearchFlagsTypeAllWords or MFFullTextSearchFlagsTypeAnyWords flag needs to be present in the expression, e.g.:
| Full Text search using Smart Search index |
Copy Code
|
|---|---|
conditionText.Expression.SetAnyFieldExpression
(
MFFullTextSearchFlags.MFFullTextSearchFlagsLookInFileData
| MFFullTextSearchFlags.MFFullTextSearchFlagsLookInMetaData
| MFFullTextSearchFlags.MFFullTextSearchFlagsTypeAllWords
);
|
|