3 ms·
I'd be interested in hearing more about how you built the search. I keep my own personal cookbook online with a search and I'm curious how others implement thei
by aimor 4y ago
I'd be interested in hearing more about how you built the search. I keep my own personal cookbook online with a search and I'm curious how others implement theirs. For me, after getting tired of the slow SQL text search queries, I made a search index of 3-grams using the title and ingredients text and that's worked great for ~100 recipes, and also has the benefit of being fuzzy. But I don't know much about alternative methods that are still simple to implement from scratch.
- nsemikey 4y agoHi there - unfortunately, I use a slow SQL text query + ajax to display results below search bar. I have a small database so it's fine for now, but expect I'll need an alternative method as it grows.
- sodapopcan 4y agoIf you're using Postgres, it has very acceptable fulltext search builtin that will take you very far.
- nsemikey 4y agoThanks for the tip.
- james_in_the_uk 4y agoI used Manticore last time I needed plug and play full text search. Worked well for my use case.