If you just need full text search, assuming you're already using Postgres you can get quite far just using it's own primitives
https://www.postgresql.org/docs/current/textsearch.html
https://www.crunchydata.com/blog/postgres-full-text-search-a...
https://www.postgresql.org/docs/current/textsearch.html
https://www.crunchydata.com/blog/postgres-full-text-search-a...
I'm not saying PostgreSQL's functionality is useless, but if you need ranking based on the relative frequency of a term in a corpus, then I don't believe PostgreSQL can handle that unless something has changed in the last few years. Usually the reason to use something like Lucene or Tantivy is precisely for its ranking support that incorporates inverse document frequency.