2.2.1.5 CNodeRestriction

The CNodeRestriction structure contains an array of command tree restriction nodes for constraining the results of a search query.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Count

Restrictions (variable)

...

Restriction (variable)

...

Count (4 bytes): A 32-bit unsigned integer specifying the number of CRestriction structures contained in the Restrictions field.

Restrictions (variable): An array of CRestriction structures. Structures in the array MUST be separated by zero to 3 padding bytes such that each structure begins at an offset that is a multiple of 4 bytes from the beginning of the message that contains this array. If padding bytes are present, the value they contain is arbitrary. The content of the padding bytes MUST be ignored by the receiver.

Restriction (variable): The format of this field depends on the value of the Type field of the enclosing CRestriction structure:

Value of the Type field

Meaning

RTAnd

0x00000001

The field MUST be empty.

RTOr

0x00000002

The field MUST be empty.

RTProximity

0x00000006

The field MUST be empty.

RTPhrase

0x00000013

The field contains a CPhraseRestriction. All the CRestriction structures in the Restrictions field MUST have a type of RTWord or RTSynonym.

RTProb

0x0000000D

The field contains a CProbRestriction. All the CRestriction structures in the Restrictions field MUST have a type of RTWord, RTSynonym or RTPhrase.