Postgres Full-Text Search

Comments discuss PostgreSQL's built-in full-text search capabilities, extensions like pg_trgm and pg_bm25, and comparisons to Elasticsearch or Solr, often advocating it as sufficient for many applications without needing separate search engines.

📉 Falling 0.3x Databases
1,687
Comments
20
Years Active
5
Top Authors
#5431
Topic ID

Activity Over Time

2007
5
2008
7
2009
13
2010
15
2011
30
2012
58
2013
60
2014
109
2015
74
2016
100
2017
116
2018
119
2019
126
2020
67
2021
167
2022
201
2023
161
2024
134
2025
114
2026
11

Keywords

CJK ICU altercollation.html FTS rachbelaid.com HN TF PG12 SOLR PG postgres text search search text postgresql index elasticsearch listings indexes es

Sample Comments

ako Apr 8, 2019 View on HN

How does this compare to full text search in Postgres?

KingOfCoders Jul 29, 2022 View on HN

If you already use Postgres consider PH full text search first.

samsk Jul 19, 2019 View on HN

With Postgresql you can use pg_trgm, might be not as powerful as what SOLR/ES provides, but easier to run.

srameshc Jul 19, 2019 View on HN

Search built using Postgres is underrated. It can do a lot if used properly.

aeontech Feb 11, 2013 View on HN

What are you using for full-text search, anything unusual or just postgres built-in search?

DeathArrow Oct 15, 2021 View on HN

How does text search in Postgres compare with Elasticsearch?

trustfundbaby Aug 16, 2012 View on HN

Does anybody know how Postgres' fulltext search capabilities/performance compare to using something like ElasticSearch?

willlll Oct 13, 2011 View on HN

Postgres has excellent full text search built in, and we've always had postgres.

philippemnoel Dec 14, 2023 View on HN

You can even do Elastic-level full text search in Postgres with pg_bm25 (disclaimer: I am one of the makers of pg_bm25). Postgres truly rules, agree on the rec :)

sodapopcan May 6, 2022 View on HN

If you're using Postgres, it has very acceptable fulltext search builtin that will take you very far.