Query interface

Defines a search query.

Properties

displayText

The display version of the query term. NOTE: This property will not be serialized. It can only be populated by the server.

searchLink

The URL that you use to get the results of the related search. Before using the URL, you must append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header. Use this URL if you're displaying the results in your own user interface. Otherwise, use the webSearchUrl URL. NOTE: This property will not be serialized. It can only be populated by the server.

text

The query string. Use this string as the query term in a new search request.

thumbnail

The URL to a thumbnail of a related image. NOTE: This property will not be serialized. It can only be populated by the server.

webSearchUrl

The URL that takes the user to the Bing search results page for the query. NOTE: This property will not be serialized. It can only be populated by the server.

Property Details

displayText

The display version of the query term. NOTE: This property will not be serialized. It can only be populated by the server.

displayText?: string

Property Value

string

The URL that you use to get the results of the related search. Before using the URL, you must append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header. Use this URL if you're displaying the results in your own user interface. Otherwise, use the webSearchUrl URL. NOTE: This property will not be serialized. It can only be populated by the server.

searchLink?: string

Property Value

string

text

The query string. Use this string as the query term in a new search request.

text: string

Property Value

string

thumbnail

The URL to a thumbnail of a related image. NOTE: This property will not be serialized. It can only be populated by the server.

thumbnail?: ImageObject

Property Value

webSearchUrl

The URL that takes the user to the Bing search results page for the query. NOTE: This property will not be serialized. It can only be populated by the server.

webSearchUrl?: string

Property Value

string