CFullPropSpec - [ms-wsp]: Windows Search Protocol Intellectual Property Rights Notice for Open Specifications Documentation

|
[ms-wsp]: Windows Search Protocol Intellectual Property Rights Notice for Open Specifications Documentation
|
bet | 7/28 | Sana | 25.03.2020 | Hajmi | 349,46 Kb. | | #8793 |
CFullPropSpec
The CFullPropSpec structure contains a property set GUID and a property identifier to uniquely identify a property. A CFullPropSpec instance has a property set GUID and either an integer property ID or a string property name. For properties to match, the CFullPropSpec structure MUST match the column identifier in the index. There is no conversion between property IDs and property names. Property names are case insensitive. (The CFullPropSpec structure corresponds to the FULLPROPSPEC structure described in [MSDN-FULLPROPSPEC].)
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
|
paddingPropSet (variable)
|
...
|
_guidPropSet (16 bytes)
|
...
|
...
|
ulKind
|
PrSpec
|
Property name (variable)
|
...
|
paddingPropSet (variable): This field MUST be 0 to 8 bytes in length. The length of this field MUST be such that the following field (_guidPropSet) begins at an offset that is a multiple of 8 bytes from the beginning of the message that contains this structure. If this field is present (that is, length nonzero), the value it contains is arbitrary. The content of this field MUST be ignored by the receiver.
_guidPropSet (16 bytes): The GUID of the property set to which the property belongs.
ulKind (4 bytes): A 32-bit unsigned integer. MUST be one of the following values that indicates the contents of PrSpec.
Value
|
Meaning
|
PRSPEC_LPWSTR
0x00000000
|
The PrSpec field specifies the number of non-null characters in the Property name field.
|
PRSPEC_PROPID
0x00000001
|
The PrSpec field specifies the property ID (PROPID).
|
PrSpec (4 bytes): A 32-bit unsigned integer with a meaning as indicated by the ulKind field.
Property name (variable): If ulKind is set to PRSPEC_PROPID, this field MUST NOT be present. If ulKind is set to PRSPEC_LPWSTR, this field MUST contain a case-insensitive array of PrSpec non-null Unicode characters that contains the name of the property.
CContentRestriction
The CContentRestriction structure contains a word or phrase to match in the inverted index for a specific property.
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
|
_Property (variable)
|
...
|
Padding1 (variable)
|
...
|
Cc
|
_pwcsPhrase (variable)
|
...
|
Padding2 (variable)
|
...
|
Lcid
|
_ulGenerateMethod
|
_Property (variable): A CFullPropSpec structure. This field indicates the property on which to perform a match operation.
Padding1 (variable): This field MUST be 0 to 3 bytes in length. The length of this field MUST be such that the following field begins at an offset that is a multiple of 4 bytes from the beginning of the message that contains this structure. If this field is present (that is, length nonzero), the value it contains is arbitrary. The content of this field MUST be ignored by the receiver.
Cc (4 bytes): A 32-bit unsigned integer, specifying the number of characters in the _pwcsPhrase field.
_pwcsPhrase (variable): A non-null-terminated Unicode string representing the word or phrase to match for the property. This field MUST NOT be empty. The Cc field contains the length of the string.
Padding2 (variable): This field MUST be 0 to 3 bytes in length. The length of this field MUST be such that the following field begins at an offset that is a multiple of 4 bytes from the beginning of the message that contains this structure. If this field is present (that is, length nonzero), the value it contains is arbitrary. The content of this field MUST be ignored by the receiver.
Lcid (4 bytes): A 32-bit unsigned integer, indicating the locale of _pwcsPhrase, as specified in [MS-LCID].
_ulGenerateMethod (4 bytes): A 32-bit unsigned integer, specifying the method to use when generating alternate word forms.
Value
|
Meaning
|
GENERATE_METHOD_EXACT
0x00000000
|
Exact match. Each word in the phrase matches exactly in the inverted index.
|
GENERATE_METHOD_PREFIX
0x00000001
|
Prefix match. Each word in the phrase is considered a match if the word is a prefix of an indexed string. For example, if the word "barking" is indexed, then "bar" would match when performing a prefix match.
|
GENERATE_METHOD_INFLECT
0x00000002
|
Matches inflections of a word. An inflection of a word is a variant of the root word in the same part of speech that has been modified, according to linguistic rules of a given language. For example, inflections of the verb swim in English include swim, swims, swimming, and swam. The inflection forms of a word can be determined by calling the Inflect abstract interface (section 3.1.7) to the GSS (Generic Search Service) with "pwcsPhrase" as an argument.
|
|
| |