searchQuery resource type

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Caution

Resources used in a Microsoft Search API request and response have had properties renamed or removed, or are being deprecated. Find more details about the deprecation. Update search API queries in any earlier apps accordingly.

Represents a search query that contains search terms and optional filters.

Properties

Property Type Description
queryString String The search query containing the search terms. Required.
queryTemplate String Provides a way to decorate the query string. Supports both KQL and query variables. Optional.
query_string (deprecated) searchQueryString This is now replaced by the queryString property. The search query containing the search terms.

Relationships

None.

JSON representation

The following JSON representation shows the resource type.

{
  "queryString": "String",
  "queryTemplate": "String",
  "query_string": {"@odata.type": "microsoft.graph.searchQueryString"}
}