File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
packages/client-search/src/types Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -359,4 +359,12 @@ export type SearchOptions = {
359
359
* This parameter is only used to turn off Dynamic Re-Ranking (with false) at search time.
360
360
*/
361
361
readonly enableReRanking ?: boolean ;
362
+
363
+ /**
364
+ * When Dynamic Re-Ranking is enabled, only records that match these filters will be impacted by Dynamic Re-Ranking.
365
+ */
366
+ readonly reRankingApplyFilter ?:
367
+ | string
368
+ | readonly string [ ]
369
+ | ReadonlyArray < readonly string [ ] | string > ;
362
370
} ;
Original file line number Diff line number Diff line change @@ -343,4 +343,21 @@ export type Settings = {
343
343
} ;
344
344
} ;
345
345
} ;
346
+
347
+ /**
348
+ * Whether this index should use Dynamic Re-Ranking.
349
+ * @link https://www.algolia.com/doc/guides/algolia-ai/re-ranking/
350
+ *
351
+ * Note: You need to turn on Dynamic Re-Ranking on your index for it to have an effect on
352
+ * your search results. You can do this through the Re-Ranking page on the dashboard.
353
+ */
354
+ readonly enableReRanking ?: boolean ;
355
+
356
+ /**
357
+ * When Dynamic Re-Ranking is enabled, only records that match these filters will be impacted by Dynamic Re-Ranking.
358
+ */
359
+ readonly reRankingApplyFilter ?:
360
+ | string
361
+ | readonly string [ ]
362
+ | ReadonlyArray < readonly string [ ] | string > ;
346
363
} ;
You can’t perform that action at this time.
0 commit comments