meilisearch-symfony icon indicating copy to clipboard operation
meilisearch-symfony copied to clipboard

Inconsistency of attribute name formatting in different settings

Open mkilmanas opened this issue 1 year ago • 1 comments

It seems that different settings require different formatting of attributes/properties when configuring: Screenshot 2023-04-25 at 17 00 22

As you can see, filterable and sortable attributes take camelCase names, but searchable attributes require snake_case naming.

Can we have them all in the same format (not that important which one, as long as it's consistent)? (Not sure if this qualifies as a bug or a feature request)

Or am I missing some detail?

mkilmanas avatar Apr 25 '23 14:04 mkilmanas

Hi @mkilmanas, that's a good idea! But indeed is a feature request. In other framework integrations like rails, we manage these formatting questions by ourselves before sending them to Meili.

brunoocasali avatar Apr 27 '23 12:04 brunoocasali