Skip to content

filterableAttributes not set #319

Open
@jeremylynch

Description

@jeremylynch

We have recently upgraded to meilisearch 1.6.0, and are using meilisearch-rails 0.10.2.

We recently ran into an issue where we had to delete an index and then re-create it. However, after deleting the index, and then manually reindexing the model (Offer.reindex), we had an error for Attribute "manufacturer.name" is not filterable.

As shown below, the filterable_attributes are clearly defined under the model:

filterable_attributes [
    'manufacturer.name'
]

To fix this, I had to manually execute the below:

client.index(‘Offer_production’).update_filterable_attributes([
  ‘manufacturer.name’
])

Why would the filterable_attributes not have been automatically set when calling Manufacturer.reindex!? Is this gem compatible with Meilisearch 1.6 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions