From 0554e3c0fb87b8a245e20f4a113ff6e32e63b80d Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Mon, 13 Jan 2025 12:48:56 +0000 Subject: [PATCH] fix(specs): optionalFilters additional explanation [skip-bc] (generated) https://github.com/algolia/api-clients-automation/pull/4353 Co-authored-by: algolia-bot Co-authored-by: Kai Welke Co-authored-by: shortcuts --- algoliasearch/recommend/models/optional_filters.py | 2 +- algoliasearch/search/models/optional_filters.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/algoliasearch/recommend/models/optional_filters.py b/algoliasearch/recommend/models/optional_filters.py index 30f02effb..14b5e80de 100644 --- a/algoliasearch/recommend/models/optional_filters.py +++ b/algoliasearch/recommend/models/optional_filters.py @@ -20,7 +20,7 @@ class OptionalFilters(BaseModel): """ - Filters to promote or demote records in the search results. Optional filters work like facet filters, but they don't exclude records from the search results. 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. - Optional filters don't work with numeric attributes. + Filters to promote or demote records in the search results. Optional filters work like facet filters, but they don't exclude records from the search results. 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. - 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. """ oneof_schema_1_validator: Optional[List[OptionalFilters]] = Field(default=None) diff --git a/algoliasearch/search/models/optional_filters.py b/algoliasearch/search/models/optional_filters.py index 30f02effb..14b5e80de 100644 --- a/algoliasearch/search/models/optional_filters.py +++ b/algoliasearch/search/models/optional_filters.py @@ -20,7 +20,7 @@ class OptionalFilters(BaseModel): """ - Filters to promote or demote records in the search results. Optional filters work like facet filters, but they don't exclude records from the search results. 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. - Optional filters don't work with numeric attributes. + Filters to promote or demote records in the search results. Optional filters work like facet filters, but they don't exclude records from the search results. 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. - 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. """ oneof_schema_1_validator: Optional[List[OptionalFilters]] = Field(default=None)