meilisearch / firestore-meilisearch

Fulltext search on Firebase with Meilisearch
https://www.meilisearch.com
Apache License 2.0
89 stars 15 forks source link

Custom Document Name Handler #189

Open russellweiss opened 1 month ago

russellweiss commented 1 month ago

Description For existing collections where document names cannot be easily modified, the Meilisearch extension fails because certain characters are not allowed.

It would be good to enable an option to either automatically sanitize this document name or use a GUID for each document.

Unfortunately, this issue is preventing me from using the Meilisearch extension.

Basic example Document names contain the "\" character. We'd be fine replacing them with "_" or "-" or another allowed character.

Other The ability to write and specify a custom handler or function would be helpful as well.

VikramNagwal commented 1 month ago

Is it okay to replace all the invalid characters with valid ones?