小编ind*_*ena的帖子

Loopback4 connect to Elasticsearch

How to connect loopback4 server app with Elasticsearch DB.

I have tried with below reference links. but they have not explained for loopback4. And have did same implementation using below references but not able creating mapping properly to fetch records.

https://loopback.io/doc/en/community/Elasticsearch-connector.html

https://github.com/strongloop-community/loopback-connector-elastic-search/tree/feature/esv6

{
  "name": "customer",
  "connector": "esv6",
  "index": "index_name",
  "hosts": [
    {
      "protocol": "http",
      "host": "127.0.0.1",
      "port": 9200
    }
  ],
  "apiVersion": "6.5",
  "defaultSize": "100",
  "requestTimeout": 30000,
  "log": "trace",
  "mappingType": "basedata",
  "mappings": [],
  "mappingProperties": {
    "......."
    "id": {
      "type": "keyword",
      "index": …
Run Code Online (Sandbox Code Playgroud)

loopback elasticsearch loopbackjs

5
推荐指数
0
解决办法
125
查看次数

标签 统计

elasticsearch ×1

loopback ×1

loopbackjs ×1