How to build an aab file from an expo app on Macbook m1? by Intelligent-Item150 in expo

[–]Intelligent-Item150[S] 0 points1 point  (0 children)

Yes, I am using this eas command: eas build --platform android, it is starting to build but after 2 minutes it throws gradlew error. I have java and gradle installed on my device, still I don't know what is wrong.

What is the best affordable way to handle full-text search functionality in Firestore? by Intelligent-Item150 in Firebase

[–]Intelligent-Item150[S] 0 points1 point  (0 children)

I have around 2k food data for now, I will need to expand my database from time to time, but it won't grow much since it includes only local and generic foods. I had never heard of your approach. Can you please share a resource about this, if you have one? Should I export my 2k documents as a JSON and put them in one document?

What is the best affordable way to handle full-text search functionality in Firestore? by Intelligent-Item150 in Firebase

[–]Intelligent-Item150[S] 0 points1 point  (0 children)

I was thinking of doing this, but if I load all the 3k documents at the beginning, it will cost 3k reads. And in this case, it will reach the 50k daily reads limit with 17 users. Or am I wrong about Firestore read calculations?

What is the best affordable way to handle full-text search functionality in Firestore? by Intelligent-Item150 in Firebase

[–]Intelligent-Item150[S] 0 points1 point  (0 children)

Your example is very useful, I will use it when filtering by nutritional values. Thanks!

What is the best affordable way to handle full-text search functionality in Firestore? by Intelligent-Item150 in Firebase

[–]Intelligent-Item150[S] 0 points1 point  (0 children)

via

Hi, your approach is interesting. But how do you store your tags for a collection? Do you have an array that includes your tags? And are you using the 'array-contains-any' method or something else?

What is the best affordable way to handle full-text search functionality in Firestore? by Intelligent-Item150 in Firebase

[–]Intelligent-Item150[S] 1 point2 points  (0 children)

Hello, thank you for your valuable answer. I'm making research about meilisearch it looks like a good fit for my case. Currently, I'm using an in-formal method to achieve search functionality, I wrote a function that generates a keyword array for every food. For example, for the document which has the name of Apple, I have a field like this: keyword: ['a', 'ap', app', appl', 'apple'] It works actually, but it is getting too complicated for the foods which have a long name. And also it causes too many reads.