From 1292ed442aa84d41dccf20fb5793d4909807faeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bertrand=20Le=20M=C3=A9e?= <6178622+NixFrog@users.noreply.github.com> Date: Thu, 4 Dec 2025 15:47:04 +0100 Subject: [PATCH 1/2] docs(SearchParams): Document that filter scores are supported in virtual replicas --- specs/common/schemas/SearchParams.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/common/schemas/SearchParams.yml b/specs/common/schemas/SearchParams.yml index 15de700352..1820fd238b 100644 --- a/specs/common/schemas/SearchParams.yml +++ b/specs/common/schemas/SearchParams.yml @@ -410,8 +410,8 @@ optionalFilters: Records that match the optional filter rank before records that don't match. If you're using a negative filter `facet:-value`, matching records rank after records that don't match. - - Optional filters don't work on virtual replicas. - Optional filters are applied _after_ sort-by attributes. + - On virtual replicas, optional filters are applied _after_ the replica's [relevant sort](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/relevant-sort). - Optional filters are applied _before_ custom ranking attributes (in the default [ranking](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria)). - Optional filters don't work with numeric attributes. From 019fac3463d49eeb01568296e4f647254f1f4177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bertrand=20Le=20M=C3=A9e?= <6178622+NixFrog@users.noreply.github.com> Date: Wed, 10 Dec 2025 14:08:49 +0100 Subject: [PATCH 2/2] fixup! docs(SearchParams): Document that filter scores are supported in virtual replicas --- specs/common/schemas/SearchParams.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/common/schemas/SearchParams.yml b/specs/common/schemas/SearchParams.yml index 1820fd238b..219b880373 100644 --- a/specs/common/schemas/SearchParams.yml +++ b/specs/common/schemas/SearchParams.yml @@ -411,9 +411,9 @@ optionalFilters: If you're using a negative filter `facet:-value`, matching records rank after records that don't match. - Optional filters are applied _after_ sort-by attributes. - - On virtual replicas, optional filters are applied _after_ the replica's [relevant sort](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/relevant-sort). - Optional filters are applied _before_ custom ranking attributes (in the default [ranking](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria)). - Optional filters don't work with numeric attributes. + - On virtual replicas, optional filters are applied _after_ the replica's [relevant sort](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/relevant-sort). example: ['category:Book', 'author:John Doe'] oneOf: