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




    Download 349.46 Kb.
    bet11/28
    Sana25.03.2020
    Hajmi349.46 Kb.
    #8793
    1   ...   7   8   9   10   11   12   13   14   ...   28

    CScopeRestriction


    The CScopeRestriction structure restricts the files to be returned to those with a path that matches the restriction.

    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

    CcLowerPath

    _lowerPath (variable)

    ...

    _padding (variable)

    ...

    _length

    _fRecursive

    _fVirtual

    CcLowerPath (4 bytes): A 32-bit unsigned integer containing the number of Unicode characters in the _lowerPath field.

    _lowerPath (variable): A non-null-terminated Unicode string representing the path to which the query is restricted. The CcLowerPath field contains the length of the string.

    _padding (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.

    _length (4 bytes): A 32-bit unsigned integer containing the length of _lowerPath in Unicode characters. This MUST be the same value as CcLowerPath.

    _fRecursive (4 bytes): A 32-bit unsigned integer. MUST be set to one of the following values:

    Value

    Meaning

    0x00000000

    The server is not to examine any subdirectories.

    0x00000001

    The server is to recursively examine all subdirectories of the path.

    _fVirtual (4 bytes): A 32-bit unsigned integer. MUST be set to one of the following values:

    Value

    Meaning

    0x00000000

    _lowerPath is a file system path.

    0x00000001

    _lowerPath is a virtual path (the URL associated with a physical directory on the file system) for a website.


          1. CSort


    The CSort structure identifies a column, direction, and locale to sort by.

    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

    pidColumn

    dwOrder

    dwIndividual

    locale

    pidColumn (4 bytes): A 32-bit unsigned integer. This is the index in CPidMapper for the property to sort by.

    dwOrder (4 bytes): A 32-bit unsigned integer. MUST be one of the following values, specifying how to sort based on the column.

    Value

    Meaning

    QUERY_SORTASCEND

    0x00000000



    The rows are to be sorted in ascending order based on the values in the column specified.

    QUERY_DESCEND

    0x00000001



    The rows are to be sorted in descending order based on the values in the column specified.

    dwIndividual (4 bytes): A 32-bit unsigned integer. dwIndividual specifies how to treat properties of type VT_VECTOR with regard to sorting and MUST be one of the following values.

    Value

    Meaning

    QUERY_SORTALL

    0x00000000



    The complete property is used for sorting, resulting in a single row for each result.

    QUERY_SORTINDIVIDUAL

    0x00000001



    Each element of the VT_VECTOR is used for sorting independently, possibly resulting in multiple rows for a single result.

    locale (4 bytes): A 32-bit unsigned integer indicating the locale (as specified in [MS-LCID]) of the column. The locale determines the sorting rules to use when sorting textual values. The GSS can use the appropriate operating system facilities to do this.
          1. CVectorRestriction


    The CVectorRestriction structure contains a weighted OR operation over restriction nodes. Vector restrictions represent queries using the full text vector space model of ranking (see [SALTON] for details). In addition to the OR operation, they also compute a rank based on the ranking algorithm.

    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

    _pres (variable)

    ...

    _padding (variable)

    ...

    _ulRankMethod

    _pres (variable): A CNodeRestriction command tree upon which a ranked OR operation is to be performed.

    _padding (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 is nonzero), the value it contains is arbitrary. The content of this field MUST be ignored by the receiver.

    _ulRankMethod (4 bytes): A 32-bit unsigned integer specifying a ranking algorithm. MUST be set to one of the following values.

    Value

    Meaning

    VECTOR_RANK_MIN

    0x00000000



    Use the minimum algorithm, as specified in [SALTON].

    VECTOR_RANK_MAX

    0x00000001



    Use the maximum algorithm, as specified in [SALTON].

    VECTOR_RANK_INNER

    0x00000002



    Use the inner product algorithm, as specified in [SALTON].

    VECTOR_RANK_DICE

    0x00000003



    Use the Dice coefficient algorithm, as specified in [SALTON].

    VECTOR_RANK_JACCARD

    0x00000004



    Use the Jaccard coefficient algorithm, as specified in [SALTON].




          1. Download 349.46 Kb.
    1   ...   7   8   9   10   11   12   13   14   ...   28




    Download 349.46 Kb.

    Bosh sahifa
    Aloqalar

        Bosh sahifa



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

    Download 349.46 Kb.