DataStoreSpec

這個結構體用於定義要在搜尋呼叫中篩選的資料儲存庫,以及這些資料儲存庫的設定。否則,系統會傳回 INVALID_ARGUMENT 錯誤。

JSON 表示法
{
  "dataStore": string,
  "filter": string,
  "boostSpec": {
    object (BoostSpec)
  },
  "customSearchOperators": string,
  "numResults": integer
}
欄位
dataStore

string

這是必要旗標,DataStore 的完整資源名稱,例如 projects/{project}/locations/{location}/collections/{collectionId}/dataStores/{dataStoreId}。路徑必須包含專案編號,這個欄位不支援專案 ID。

filter

string

選用。篩選條件規格,用於篩選 dataStore 欄位指定的資料儲存庫中的文件。如要進一步瞭解篩選功能,請參閱「篩選

boostSpec

object (BoostSpec)

選用。提高特定文件的規格。如要進一步瞭解加成,請參閱「加成

customSearchOperators

string

選用。自訂搜尋運算子 (如有指定),用於篩選工作區資料儲存庫的結果。如要進一步瞭解自訂搜尋運算子,請參閱 SearchOperators

numResults

integer

選用。從這個資料儲存庫擷取的結果數量上限。如未指定,系統會使用提供的 SearchRequest.num_results_per_data_store,否則沒有限制。如果同時指定這個欄位和 SearchRequest.num_results_per_data_store,系統會使用這個欄位。