Meilisearch removes leading zeros from numeric-like strings (e.g., SKU ‘04433’ becomes ‘4433’) #861
                  
                    
                      vikas-jindal-999
                    
                  
                
                  started this conversation in
                Feedback & Feature Proposal
              
            Replies: 1 comment
-
| 
         Hello @vikas-jindal-999 I answered your issue here  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
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?
Beta Was this translation helpful? Give feedback.
All reactions