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)