Show AllShow All

Handling Queries

The Query method is central to a research service. The Research task pane submits the user's query to the Query method, along with information about the Research task pane, the Microsoft® Office 2003 host application, and other user settings. The Query method responds with the query results, which may consist of simple hyperlinks or richly formatted content, and may be enhanced with form controls and actions.

Query Web Method

The Query method receives an incoming string value from the Research task pane in the form of an XML document that conforms to the Microsoft.Search.Query family of schemas, and returns a string value containing the query results (or an alternate message) in the form of an XML document that conforms to the Microsoft.Search.Response family of schemas.

ShowQuery method prototype

Format of the Query Request and Response

ShowFormat of the query request

ShowFormat of the query response

Elements of the Query Request and Response

The following tables provide information about some of the more significant elements and attributes in the query request and response.

ShowCommon elements in the query request and response

ShowUnique elements in the query request

ShowUnique elements in the query response

Other Namespaces Used in the Query Request

ShowQuery family of namespaces

ShowMicrosoft.Search.Query.Office.Context namespace

ShowMicrosoft.Search.Query.Office.Keywords namespace

ShowMicrosoft.Search.Office.ServiceParameters namespace

Other Namespaces Used in the Query Response

ShowResponse family of namespaces

ShowMicrosoft.Search.Response.Document namespace

ShowMicrosoft.Search.Response.Content namespace

ShowMicrosoft.Search.Response.Form namespace

Additional Implementation Details

ShowIncluding custom data with every query request

ShowQuerying multiple services from the same provider

ShowRequerying

ShowParental control and filtering query results

ShowRecognizing the limitations of the Research task pane user interface

ShowUpdating and removing services

Walkthrough: Sample Query Request, Response, and Code

ShowSample query request

ShowSample query response

ShowSample query response code

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp