CCoercionRestriction - [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 | 12/28 | Sana | 25.03.2020 | Hajmi | 349,46 Kb. | | #8793 |
CCoercionRestriction
The CCoercionRestriction structure contains the modifier and rank coercion operation.
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
|
_flValue
|
_childRes (variable)
|
...
|
_flValue (4 bytes): An IEEE 32-bit floating point number [IEEE754] representing the coercion value upon which the rank coercion operation happens. Note that the coercion operation is determined by the containing CRestriction structure. The following coercion operations are supported.
Operation
|
Meaning
|
ADD
|
The rank value returned is the sum of the original rank value and the coercion value.
|
MULTIPLY
|
The rank value returned is the product of the original rank value and the coercion value and MUST be in the range 0.001 to 1.0.
|
ABSOLUTE
|
The rank value returned is the value specified in the coercion value and MUST be in the range 0 to 1000.
|
_childRes (variable): CRestriction structure that specifies a command tree. The returned rank value for results of a child restriction will be coerced as specified by the containing CRestriction structure.
CRelDocRestriction
A CRelDocRestriction structure contains a relevant document ID.
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
|
_vDocument (variable)
|
...
|
_vDocument (variable): A CBaseStorageVariant structure that specifies a relevant document for a relevance feedback query. The vType field of the _vDocument structure MUST be set to either VT_I4 or to VT_BSTR, specifying a URL string.
If vType is set to VT_I4, then vValue MUST be set to the document ID.
If vType is set to VT_BSTR, the URL string MUST be formatted by concatenating a constant string containing the docId protocol, the application, and the catalog name with the document ID in decimal representation, as in the following example.
docid:Windows.SystemIndex.153
In the example, "Windows" is the application name, "SystemIndex" is the catalog name, and "153" is the document ID for the document in decimal notation.<3>
CProbRestriction
A CProbRestriction structure contains parameters for probabilistic ranking.
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)
|
...
|
_flK1
|
_flK2
|
_flK3
|
_flB
|
_cFeedbackDoc
|
_ProbQueryPid
|
_Property (variable): A CFullPropSpec structure, indicating which property to use for probabilistic ranking or the columns' group full property specification (which corresponds to _groupPid field in the CColumnGroup structure). In the latter case, CFullPropSpec MUST have the _guidPropSet field set to zero, the ulKind field set to PRSPEC_LPWSTR and the Property Name field set to the name of the referenced group property.
_flK1 (4 bytes): An IEEE 32-bit floating point number [IEEE754] that indicates parameter k1 in formula [1], specified below.
_flK2 (4 bytes): An IEEE 32-bit floating point number.
Note MUST be set to 0.0.
_flK3 (4 bytes): An IEEE 32-bit floating point number that indicates parameter k3 in formula [1].
_flB (4 bytes): An IEEE 32-bit floating point number that indicates parameter b in formula [1] below.
_cFeedbackDoc (4 bytes): A 32-bit unsigned integer specifying the count of relevant documents.
_ProbQueryPid (4 bytes): A 32-bit unsigned integer.
Note Reserved. MUST be set to 0x00000000.
Formula [1] for probabilistic ranking is the following sum for each query term:
Figure 1: Linear equation for probabilistic ranking restrictions in search request
Where:
wtf (weighted term frequency) is the sum of term frequencies (the number of times a term occurs in a document) of a given term multiplied by weights across all properties.
dl is the document length, in terms of number of all words (including noise words).
avdl is the average document length in the corpus, in terms of number of words (including noise words).
N is the total number of documents in the corpus.
n is the number of documents in the corpus that have the given query term.
qtf is the number of documents containing the given query term; the sum is across all query terms.
k1, k3, and b are parameters, specified in the CProbRestriction structure.
3>
|
| |