2.2.1.10 CRestriction
The CRestriction structure contains a restriction node in a query command tree.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
_ulType |
|||||||||||||||||||||||||||||||
Weight |
|||||||||||||||||||||||||||||||
Restriction (variable) |
|||||||||||||||||||||||||||||||
... |
_ulType (4 bytes): A 32-bit unsigned integer indicating the restriction type used for the command tree node. The type determines what is found in the Restriction field of the structure as described in the following table. MUST be set to one of the following values.
-
Value
Meaning
RTNone
0x00000000
The node represents a noise word in a vector query.
RTAnd
0x00000001
The node contains a CNodeRestriction structure on which a logical AND operation is to be performed.
RTOr
0x00000002
The node contains a CNodeRestriction structure on which a logical OR operation is to be performed.
RTNot
0x00000003
The node contains a CRestriction structure on which a NOT operation is to be performed.
RTContent
0x00000004
The node contains a CContentRestriction structure.
RTProperty
0x00000005
The node contains a CPropertyRestriction structure.
RTProximity
0x00000006
The node contains a CNodeRestriction structure with an array of CContentRestriction structures. Any other kind of restriction is undefined. The restriction requires the words or phrases found in the CContentRestriction structures to be within an indexing service defined range in order to be a match. The indexing service can also compute a rank based on how far apart the words or phrases are.
RTVector
0x00000007
The node contains a CVectorRestriction structure.
RTNatLanguage
0x00000008
The node contains a CNatLanguageRestriction structure.
RTScope
0x00000009
The node contains a CScopeRestriction structure.
RTPhrase
0xFFFFFFFD
The node contains a CNodeRestriction structure on which a phrase match is to be performed.
Weight (4 bytes): A 32-bit unsigned integer representing the weight of the node. Weight indicates the node's importance relative to other nodes in the query command tree. Higher weight values are more important.
Restriction (variable): The restriction type for the command tree node. The syntax MUST be as indicated by the _ulType field.