Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search feature #7

Open
PabloDinella opened this issue May 4, 2018 · 0 comments
Open

search feature #7

PabloDinella opened this issue May 4, 2018 · 0 comments
Assignees
Milestone

Comments

@PabloDinella
Copy link
Owner

This is a complex feature for me, since Firestore doesn't support full text search, I would have to use something like Elastic Search or Redis. I want to publish this project with minimal or 0 cost (I might put this in README). I thought about using redis for a cached version of the database.

My idea now for mid-term solution is to save a timestamp for last modification in Firestore and build a simple server that loads all docs and check that timestamp every 2 minutes or so and update the cache. The reason for not using a cloud function to trigger that cache update is that cloud functions doesn't reach external network on firebase's free plan.

That payload would be indexed with lunr.js. Then my app could request this server and get a list for the autocompletion in the search box.

For a short-term, I will load all tags and make the autocompletion for tags only, in the client.

@PabloDinella PabloDinella added this to the 0.1.0 milestone May 4, 2018
@PabloDinella PabloDinella self-assigned this May 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant