Closed cdgco closed 1 year ago
Got search hooked up with algolia on the firebase backend. When a document is created, algolia automatically indexes it. Only new documents are indexed, so most of the existing notes don't show up in results, but new ones will. The search input was a pain in the ass to get working. It works fine on the home page, but I couldn't get it working inside of the results page, so I just removed it. It's not a great UX to have to press the back button every time to do a new search, but I think I'm fine with that.
Not sure if I actually want to implement a search engine. Firestore doesn't have a native search function for strings, so I can't search at a db level. I could use a firebase extension to integrate something like algolia, but not sure it that's worth the effort.
If implementing search, we should add a separate results page.