次の方法で共有


QueryPacket Element in Microsoft.Search.Query Schema for Windows SharePoint Services Search

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Contains all the elements for the search query request. Applies to the Search Query Web service. For more information, see Windows SharePoint Services Query Web Service.

<QueryPacket revision=integer xmlns=string>
</QueryPacket>

Attributes

Attribute

Description

revision

Unsigned integer indicating the revision of the schema used in the request. Not used by Search in Windows SharePoint Services.

xmlns

Optional String attribute. Specifies the URL to the XML schema that is used to validate the configuration file. Value for Search is "urn:Microsoft.Search.Query".

Child Elements

Query Element in Microsoft.Search.Query Schema for Enterprise Search

Parent Elements

None.

Example

Following is an example of a request for the Query Web service, using the Microsoft.Search.Query Schema.

<QueryPacket xmlns='urn:Microsoft.Search.Query'>
  <Query>
    <SupportedFormats>
      <Format>urn:Microsoft.Search.Response.Document.Document</Format>
    </SupportedFormats>
    <Context>
      <QueryText language='en-US' type='STRING'>SharePoint</QueryText>
    </Context>
  </Query>
</QueryPacket>

Remarks

Schema name: Microsoft.Search.Query

Applies to:QueryService.Query web method (Microsoft.Search.Response.Document), QueryService.QueryEx web method (System.Data.Dataset)

Optional: No

See Also

Concepts

Windows SharePoint Services Query Web Service

Microsoft.Search.Query Schema