STRUCTURED_QUERY_MULTIOPTION enumeration
A set of flags used by IQueryParser::SetMultiOption to indicate individual options.
Syntax
typedef enum tagSTRUCTURED_QUERY_MULTIOPTION { SQMO_VIRTUAL_PROPERTY = 0, SQMO_DEFAULT_PROPERTY = 1, SQMO_GENERATOR_FOR_TYPE = 2, SQMO_MAP_PROPERTY = 3 } STRUCTURED_QUERY_MULTIOPTION;
Constants
- SQMO_VIRTUAL_PROPERTY
-
To indicate that a leaf node with property name P and constant C should be replaced with a leaf node with property name Q, operation op, and constant C by IConditionFactory::Resolve, do the following: call IQueryParser::SetMultiOption with SQMO_VIRTUAL_PROPERTY as option, P as pszOptionKey, and for pOptionValue provide a VT_UNKNOWN with an IEnumVARIANT interface that enumerates exactly two values: a VT_BSTR with value Q, and a VT_I4 that is a CONDITION_OPERATION operation.
- SQMO_DEFAULT_PROPERTY
-
To indicate that a leaf node with no property name and a semantic type T (or one that is a subtype of T) should be replaced with one having property name P by IConditionFactory::Resolve, do the following: call IQueryParser::SetMultiOption with SQMO_DEFAULT_PROPERTY as option, T as pszOptionKey, and for pOptionValue provide a VT_LPWSTR with value P.
- SQMO_GENERATOR_FOR_TYPE
-
To indicate that an IConditionGenerator G should be used to recognize named entities of the semantic type named T, and that IConditionFactory::Resolve should generate condition trees for those named entities, call IQueryParser::SetMultiOption with SQMO_GENERATOR_FOR_TYPE as option, T as pszOptionKey and for pOptionValue provide a VT_UNKNOWN with value G.
- SQMO_MAP_PROPERTY
-
Windows 7, and later. To indicate that a node with property P should map to one or more other properties, call IQueryParser::SetMultiOption with SQMO_MAP_PROPERTY as option, P as pszOptionKey, and for pOptionValue provide a VT_VECTOR or VT_LPWSTR, where each string is a property name. During resolustion, this map is added to those of the loaded schema. Calling IQueryParser::SetMultiOption with pOptionValue as VT_NULL removes the mapping.
Requirements
|
Minimum supported client |
Windows XP with SP2, Windows 7 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Redistributable |
Windows Desktop Search (WDS) 3.0 |
|
Header |
|
|
IDL |
|