CustomInstance class

Class representing a CustomInstance.

Constructors

CustomInstance(CustomSearchClientContext)

Create a CustomInstance.

Methods

search(string, string, CustomInstanceSearchOptionalParams)
search(string, string, CustomInstanceSearchOptionalParams, ServiceCallback<SearchResponse>)
search(string, string, ServiceCallback<SearchResponse>)

Constructor Details

CustomInstance(CustomSearchClientContext)

Create a CustomInstance.

new CustomInstance(client: CustomSearchClientContext)

Parameters

client
CustomSearchClientContext

Reference to the service client.

Method Details

function search(customConfig: string, query: string, options?: CustomInstanceSearchOptionalParams): Promise<CustomInstanceSearchResponse>

Parameters

customConfig

string

The identifier for the custom search configuration

query

string

The user's search query term. The term may not be empty. The term may contain Bing Advanced Operators. For example, to limit results to a specific domain, use the site: operator.

options
CustomInstanceSearchOptionalParams

The optional parameters

Returns

Promise<Models.CustomInstanceSearchResponse>

search(string, string, CustomInstanceSearchOptionalParams, ServiceCallback<SearchResponse>)

function search(customConfig: string, query: string, options: CustomInstanceSearchOptionalParams, callback: ServiceCallback<SearchResponse>)

Parameters

customConfig

string

The identifier for the custom search configuration

query

string

The user's search query term. The term may not be empty. The term may contain Bing Advanced Operators. For example, to limit results to a specific domain, use the site: operator.

options
CustomInstanceSearchOptionalParams

The optional parameters

callback

ServiceCallback<SearchResponse>

The callback

search(string, string, ServiceCallback<SearchResponse>)

function search(customConfig: string, query: string, callback: ServiceCallback<SearchResponse>)

Parameters

customConfig

string

The identifier for the custom search configuration

query

string

The user's search query term. The term may not be empty. The term may contain Bing Advanced Operators. For example, to limit results to a specific domain, use the site: operator.

callback

ServiceCallback<SearchResponse>

The callback