Share via


CustomInstance class

代表 CustomInstance 的類別。

建構函式

CustomInstance(CustomSearchClientContext)

建立 CustomInstance。

方法

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

建構函式詳細資料

CustomInstance(CustomSearchClientContext)

建立 CustomInstance。

new CustomInstance(client: CustomSearchClientContext)

參數

client
CustomSearchClientContext

服務用戶端的參考。

方法詳細資料

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

參數

customConfig

string

自訂搜尋組態的識別碼

query

string

使用者的搜尋查詢字詞。 字詞可能不是空的。 此詞彙可能包含 Bing 進階運算子。 例如,若要將結果限制為特定網域,請使用 site: 運算子。

options
CustomInstanceSearchOptionalParams

選擇性參數

傳回

Promise < Models.CustomInstanceSearchResponse>

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

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

參數

customConfig

string

自訂搜尋組態的識別碼

query

string

使用者的搜尋查詢字詞。 字詞可能不是空的。 此詞彙可能包含 Bing 進階運算子。 例如,若要將結果限制為特定網域,請使用 site: 運算子。

options
CustomInstanceSearchOptionalParams

選擇性參數

callback

ServiceCallback<SearchResponse>

回呼

search(string, string, ServiceCallback<SearchResponse>)

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

參數

customConfig

string

自訂搜尋組態的識別碼

query

string

使用者的搜尋查詢字詞。 字詞可能不是空的。 此詞彙可能包含 Bing 進階運算子。 例如,若要將結果限制為特定網域,請使用 site: 運算子。

callback

ServiceCallback<SearchResponse>

回呼