They're fundamentally different products, but sometimes "pg full text search is good enough" isn't true.
They're fundamentally different products, but sometimes "pg full text search is good enough" isn't true.
I would say, frankly, that if you already have a PG database and
1. you want better full text search than a non-existing solution.
2. you don't need the excellent searching like we've come to expect from search engines.
then use the full text search feature your PG database already has. I wouldn't necessarily go out of my way to use a PG database for FTS but I think its a good solution when you're in the right position to use it and its not too shabby.
"for item in ... if item.containsSubstring(query)"
I would say it's definitely useful for real apps.Once you start exiting that and start touching document search, being able to sort on relevance OR date with indexes, or any data ingestion killing search latency, you will have wished you went to the vast and uniform area to the right of db fts called elastic search. That is where I found myself.
If search is not integral to your product, by all means avoid the complexity and curve that is elastic and be happy that you did.