You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: templates/javascript/clients/client/api/helpers.mustache
+32-30
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,4 @@
1
+
{{^isAlgoliasearchClient}}
1
2
/**
2
3
* Helper: Wait for a task to be published (completed) for a given `indexName` and `taskID`.
3
4
*
@@ -275,36 +276,6 @@ browseSynonyms(
275
276
});
276
277
},
277
278
278
-
/**
279
-
* Helper: calls the `search` method but with certainty that we will only request Algolia records (hits) and not facets.
280
-
* Disclaimer: We don't assert that the parameters you pass to this method only contains `hits` requests to prevent impacting search performances, this helper is purely for typing purposes.
281
-
*
282
-
* @summary Search multiple indices for `hits`.
283
-
* @param searchMethodParams - Query requests and strategies. Results will be received in the same order as the queries.
284
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
return this.search(searchMethodParams, requestOptions) as Promise<{results: Array<SearchResponse<T>>}>;
291
-
},
292
-
293
-
/**
294
-
* Helper: calls the `search` method but with certainty that we will only request Algolia facets and not records (hits).
295
-
* Disclaimer: We don't assert that the parameters you pass to this method only contains `facets` requests to prevent impacting search performances, this helper is purely for typing purposes.
296
-
*
297
-
* @summary Search multiple indices for `facets`.
298
-
* @param searchMethodParams - Query requests and strategies. Results will be received in the same order as the queries.
299
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
* Helper: calls the `search` method but with certainty that we will only request Algolia records (hits) and not facets.
455
+
* Disclaimer: We don't assert that the parameters you pass to this method only contains `hits` requests to prevent impacting search performances, this helper is purely for typing purposes.
456
+
*
457
+
* @summary Search multiple indices for `hits`.
458
+
* @param searchMethodParams - Query requests and strategies. Results will be received in the same order as the queries.
459
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
return this.search(searchMethodParams, requestOptions) as Promise<{results: Array<SearchResponse<T>>}>;
466
+
},
467
+
468
+
/**
469
+
* Helper: calls the `search` method but with certainty that we will only request Algolia facets and not records (hits).
470
+
* Disclaimer: We don't assert that the parameters you pass to this method only contains `facets` requests to prevent impacting search performances, this helper is purely for typing purposes.
471
+
*
472
+
* @summary Search multiple indices for `facets`.
473
+
* @param searchMethodParams - Query requests and strategies. Results will be received in the same order as the queries.
474
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
0 commit comments