Create a search engine with PostgreSQL: Postgres vs Elasticsearch

This page summarizes the projects mentioned and recommended in the original post on dev.to

Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
  1. examples

    Your one-stop-shop to try Xata out. From packages to apps, whatever you need to get started. (by xataio)

    And yes, a data platform like Xata solves most of points 1 and 2, by taking that complexity and offering it as a service, together with other goodies.

  2. Sevalla

    Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!

    Sevalla logo
  3. zombodb

    Making Postgres and Elasticsearch work together like it's 2023

    Point 2 is generally solvable via engineering effort and careful dedicated code. From the existing tools, PGSync is an open source project that aims to specifically solve this problem. ZomboDB is an interesting Postgres extension that tackles point 2 (and I think partially point 3), by controlling and querying Elasticsearch through Postgres. I haven't yet tried either of these two projects, so I can't comment on their trade-offs, but I wanted to mention them.

  4. csv2opensearch

    Import CSV files into OpenSearch or Elasticsearch

    I was curious to know at roughly what amount of data Postgres slows down compared to Elasticsearch. On the movies dataset (34K rows) that we used in part 1, all queries were reasonably fast (<300 ms). So for the testing here, I chose a larger data set: a recipes dataset from Kaggle, containing 2.3M recipes. The commands to load the CSV file in PostgreSQL can be found in this gist. For Elasticsearch, I've loaded the same CSV file using this tool.

  5. pgvector

    Open-source vector similarity search for Postgres

    Postgres supports vector search via the pgvector extension, while Elasticsearch has it built-in via the KNN search. You can find benchmarks on ann-benchmarks (look for pgvector and luceneknn) but keep in mind that both implementations are under active development and their performance is being improved.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Postgres for everything? not really..and here are some of the problems.

    4 projects | dev.to | 29 Aug 2025
  • vec2pg: Migrate to pgvector from Pinecone and Qdrant

    5 projects | dev.to | 3 Sep 2024
  • Simplifying the Milvus Selection Process

    3 projects | dev.to | 19 Feb 2024
  • Milvus Adventures Dec 15, 2023

    1 project | dev.to | 15 Dec 2023
  • GPU-Accelerated Indexing in LanceDB

    1 project | news.ycombinator.com | 3 Nov 2023

Did you know that PLpgSQL is
the 50th most popular programming language
based on number of references?