0.0.6 • Published 11 months ago

eggjs-elasticsearch v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

eggjs-elasticsearch

eggjs elasticsearch plugin use elasticsearch@8

install

npm install eggjs-elasticsearch

eggjs plugin config

plugin.js

{
  elasticsearch: {
    enable: true,
    package: "eggjs-elasticsearch"
  }
}

plugin config

config.default.ts single client

{
 elasticsearch: {
  client: {
    node: "http://localhost:9200"
  }
 }
}

config.default.ts multi clients

{
 elasticsearch: {
  clients: {
    foo: {
      node: "http://localhost:9200"
    },
    bar: {
      node: "http://localhost:9201"
    }
  }
 }
}

more options see @elastic/elasticsearch

learn how to use elasticsearch client

https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago