Skip to content

Inaccurate console warning #366

@jeremylynch

Description

@jeremylynch

We are declaring nested attributes like this:

attribute :user do
  {
    first_name: contact&.first_name,
    last_name: contact&.last_name
  }
end

searchable_attributes [
  'user.first_name'
]

However we are getting these warning:

[meilisearch-rails] Team#user.first_name declared in searchable_attributes but not in attributes. Please add it to attributes if it should be searchable.

Clearly we have declared this as a (nested) attribute - Fortunately the search still works as intended, this seems to have no impact on functionality.

Is this console warning a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions