Strongloop Loopback connector for Elasticsearch
@bharathkontham - we are hosting a meetup on Elasticsearch and loopback in Pune India. Tentatively it’s planned for sometime between March 2nd and March 14th.
I would like to invite you to attend as a speaker and present and talk about whatever you want on these topics.
The Airfair to fly from Hyderabad to pune and back will be at no cost to you.
Released v 1.0.3 for https://www.npmjs.com/package/loopback-connector-esv6
Fixed "limit" and "include" filter issues when used without "where" filter
"protocol": "https",
"host": "scalr.api.appbase.io",
"port": "443",
"auth": "username:password"
}
Elasticsearch DEBUG: 2018-03-28T06:17:17Z
starting request {
"method": "HEAD",
"castExists": true,
"path": "/catalogdev",
"body": {},
"query": {}
}
Elasticsearch TRACE: 2018-03-28T06:17:19Z
-> HEAD https://scalr.api.appbase.io:443/catalogdev
{}
<- 400
Elasticsearch DEBUG: 2018-03-28T06:17:19Z
Request complete
Connection fails: Bad Request :: {"path":"/catalogdev","query":{},"body":"{}","statusCode":400,"response":""}
@samuelbednarcik_twitter yes, you can.
sample:
{ "where": { "and": [ { "address.geo": { "geo_shape": { "address.geo": { "shape": { "type": "circle", "coordinates": [ 78.38214860577659, 17.44064909837838 ], "radius": "1km" }, "relation": "within" } } } }, { "entity_properties.value": { "gt": 50 } } ] } }
address and entity_properties in above query are nested objects
"elasticSearchDB": {
"connector": "es",
"name": "elasticSearchDB",
"index": "whatGoesHere?", ...
Hi all,
Updated Elastcsearch 6.x connector to 1.1.0
https://www.npmjs.com/package/loopback-connector-esv6
@pulkitsinghal / administrators, can we move old module which supports 5.x and older to 5.x branch and merge esv6 to master to make it default.
I'm not seeing any active development for 5.x module
Hi all,
published Elasticsearch 6.x connector 1.2.0
https://www.npmjs.com/package/loopback-connector-esv6
added support for replaceById and replaceOrCreate methods
@pookdeveloper
Hello how can i defined only user with role admin can create a new user???
i try this but not work..
{
"accessType": "EXECUTE",
"principalType": "ROLE",
"principalId": "admin",
"permission": "ALLOW",
"property": "create"
},
i am a nob in loopback .. sorry :(
I have already do what i want
near
queries with multi_match
? I'm trying to use and
operator but the multi_match
query has no effect on the result.{"where":{"and":[{"geo":{"near":{"lat":30.78,"lng":76.69}}},{"native":{"query":{"multi_match":{"query":"python","fields":["title","tags","description"],"type":"most_fields"}}}}]}}
loopback 4 connector for ElasticSearch.
I am working on loopback4 with Elasticsearch. I am created datasource.json file like this
{
"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": true
},
"docType": {
"type": "keyword",
"index": true
}
}
}
}
And my model having same id property like this
@property({
type: "string",
id: true,
generated: true,
})
id: string;
using => "loopback-connector-esv6": "^1.3.0"
but i am not able to mapping properly...not sure . because ,i am able create (POST) a model object with auto generated id (_id)..but using this id we are not able to find/fetch any data. except POST other APIS are not working..
So could you please suggest to help on this ..
how to connect elastic search using loopback4.