CustomInstance class
Class representing a CustomInstance.
Constructors
Custom |
Create a CustomInstance. |
Methods
Constructor Details
CustomInstance(CustomSearchClientContext)
Create a CustomInstance.
new CustomInstance(client: CustomSearchClientContext)
Parameters
- client
- CustomSearchClientContext
Reference to the service client.
Method Details
search(string, string, CustomInstanceSearchOptionalParams)
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.
The optional parameters
Returns
Promise<CustomInstanceSearchResponse>
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.
The optional parameters
- callback
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
The callback