Skip to content

[Meilisearch v1.41] Add support for Dynamic Search Rules #904

@Strift

Description

@Strift

Context

Meilisearch 1.41.0 introduces support Dynamic Search Rules.

In v1.41.0, dynamic search rules allow pinning documents at the top of search results when certain criteria are matched, e.g. time-based or keywords appearing in the query.

Objective

We want to update this SDK to allow the following actions:

  • Listing rules: POST /dynamic-search-rules
  • Retrieving a rule: GET /dynamic-search-rules/{uid}
  • Creating or updating a rule: PATCH /dynamic-search-rules/{uid}
  • Deleting a rule: DELETE /dynamic-search-rules/{uid}

For more information, consult the API reference.

Tasks

  • Add new methods to handle interacting with the Dynamic Search Rules API endpoints
  • Add test cases for all new methods
  • Update .code-samples.meilisearch.yaml to add examples under the following keys: list_dynamic_search_rules_1, get_dynamic_search_rule_1, patch_dynamic_search_rule_1, and delete_dynamic_search_rule_1. It should match the examples in the documentation.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions