Skip to content

[v1.14] Filterable attributes settings opt-out #660

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks
Strift opened this issue Apr 17, 2025 · 0 comments
Open
3 tasks

[v1.14] Filterable attributes settings opt-out #660

Strift opened this issue Apr 17, 2025 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Strift
Copy link
Contributor

Strift commented Apr 17, 2025

This issue follows the changes related to Meilisearch v1.14.0 mega issue.

Description

Update the settings API to handle the new filterableAttributes syntax.

For more context, see the related issue in Meilisearch: meilisearch/meilisearch#5163

Tasks

  • Update the methods to update settings to accept the new filterableAttributes syntax
  • Update the methods to return the new filterableAttributes syntax (when Meilisearch returns it)
  • Update update_filterable_attributes_1 code sample in .code-samples.meilisearch.yaml

For reference, here's how the test are implemented in Meilisearch JS SDK:

// this mixes the old syntax (field name) and new syntax (settings opt-in)
const newFilterableAttributes = [
  "author",
  {
    attributePatterns: ["genre"],
    features: {
      facetSearch: true,
      filter: { equality: true, comparison: false },
    },
  },
];
// we update the filterable attributes settings
await client
  .index(index.uid)
  .updateFilterableAttributes(newFilterableAttributes)
  .waitTask();
// the method to retrieve filterable attributes settings can also return mixed syntax
const response = await client.index(index.uid).getFilterableAttributes();
expect(response).toEqual(newFilterableAttributes);
@Strift Strift added enhancement New feature or request good first issue Good for newcomers labels Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant