meilisearch / meilisearch-go

Golang wrapper for the Meilisearch API
https://www.meilisearch.com
MIT License
480 stars 81 forks source link

Json document field name has limit for add document #519

Closed andyzhou closed 3 months ago

andyzhou commented 3 months ago

Hi, I have a issue about add the first document into a new index. I define a json format document include complex field name, like dataId int64json:"dataId"``, and add first document for new index, api response succeed, but document can't added in meili search.
When i remove this kind of field from data struct, and re-add obj again, it works. But when i re-put the complex field name into the json struct, and re-add new document into the same index, it works. The meili search has some limit for json data fields name when add new document for new index first time? Can you guys help me about this issue, thanks!