Skip to content

Meilisearch removes leading zeros from numeric-like strings (e.g., SKU ‘04433’ becomes ‘4433’) #5882

@vikas-jindal-999

Description

@vikas-jindal-999

Issue Description:
I’m facing an issue with Meilisearch related to product SKUs that start with leading zeros (e.g., 04433). When I index products, Meilisearch stores the SKU as 4433 instead of 04433. Because of this, when a user searches with the actual SKU (04433), no product is found.

I’ve already tried saving the SKU as a string, but Meilisearch still strips the leading zeros and saves it as a number.

Request:
How can I configure Meilisearch so that SKUs are always stored and searchable as strings, preserving leading zeros?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions