Indexing data in elasticsearch from postgres using express (sequelize) / Logstash

I have no experience with any full-text search client, for example Solr. I use Sequelizeas nodejs ORM for postgres using Express. So my question is how should I approach the problem of storing data in elasticsearch from postgres in the above setting.

I tried using logstash-jdbc-input-pluginas described in this link , but I am having problems indexing related data such as (one for many). For example, the author has many books, then json will look like

{
  "authorname" : [
    {
      "name" : "book1",
      "description" : "book2"
    },
    {
      "name" : "book2",
      "description" : "book2"
    }
  ]
}

Fine Sequelize, 2 , ORM (Sequelize) json- books. logstash-jdbc-input-plugin?

, Querying postgres, sequelize , - node. , - , ? .

. , .

+4

Source: https://habr.com/ru/post/1660264/


All Articles