Share via


QueryPacket Element in Microsoft.Search.Query Schema

Applies to: SharePoint Server 2010

In this article
Attributes
Child Elements
Parent Elements

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

Attributes

Attribute

Description

revision

Unsigned integer indicating the revision of the schema used in the request.

build

Optional String attribute. The build number for the client making the request.

xmlns

Optional String attribute. Specifies the URL to the XML schema that is used to validate the configuration file. The value for SharePoint Server search is "urn:Microsoft.Search.Query".

Child Elements

Query Element in Microsoft.Search.Query Schema

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>
    <Context>
      <QueryText language='en-US' type='STRING'>SharePoint</QueryText>
    </Context>
  </Query>
</QueryPacket>

Remarks

Schema name: Microsoft.Search.Query

Applies to:QueryService.Query method (Microsoft.Search.Response.Document), QueryService.QueryEx method (DataSet Class)

Optional: No

See Also

Reference

QueryService

Concepts

Using the Query Web Service

Walkthrough: Querying SharePoint Search From a Client Application