postgresqlelasticsearchindexingfull-text-searchobject-oriented-database

Full text search(Postgres) Vs Elastic search


Read Query

In Posgres, Full text indexing allows documents to be preprocessed and an index saved for later rapid searching. Preprocessing includes:


tsvector type is used in Postgres for full text search

tsvector type is different than text type in below aspects:


How Elastic search(search engine) has advantage over full text search in Postgres?


Solution

  • fulltext search and elasticsearch are both built on the same basic technology inverted indices so performance is going to be about the same.

    FTS is going to be easier to deploy.

    ES comes with lucene,

    if you want lucene with FTS that will require extra effort.