UserContextData Element

Applies to: SharePoint Server 2010

In this article
Element Value
Attributes
Child Elements
Parent Elements
Element Information

The keyword management search settings can be restricted to context. A context defines when a search setting should apply, typically targeting a specific group of users.

For more information, see Keyword Management (FAST Search Server 2010 for SharePoint).

For more information about the Query Web service, see Using the Query Web Service.

<UserContextData includeuserprofile={true|false}>
   userContextString
</UserContextData>

Element Value

For information about the userContextString format, see Using User Contexts in Queries.

Attributes

None.

Child Elements

None.

Parent Elements

UserContext Element in Microsoft.Search.Query Schema

Example

If a user with the responsibilities "developer" and "tester" submits a query for "office", the query request should include the following userContextString.

responsibilities:;:developer;tester

Element Information

Schema name: Microsoft.Search.Query

Applies to: QueryServiceQuery() method (Microsoft.Search.Response.Document), QueryServiceQueryEx() method (Dataset)

Optional: Yes

See Also

Reference

QueryService

Concepts

Keyword Management (FAST Search Server 2010 for SharePoint)

Using the Query Web Service

Walkthrough: Querying SharePoint Search From a Client Application