loopbackio / loopback-connector-elastic-search

Strongloop Loopback connector for Elasticsearch
MIT License
78 stars 57 forks source link

merge esv6 support updates #108

Closed bharathkontham closed 6 years ago

bharathkontham commented 6 years ago

Merging updates in https://github.com/bharathkontham/loopback-connector-elastic-search for ElasticSearch v6 support.

Following features are added:

Sample query for nested objects and geo_spatial:

{ "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 } } ] } }

entity_properties is a nested object and address is an object. address.geo has geo_shape data.

slnode commented 6 years ago

Can one of the admins verify this patch? To accept patch and trigger a build add comment ".ok\W+to\W+test."

pulkitsinghal commented 6 years ago

@bharathkontham reminder - publish the package under the name loopback-connector-esv6 on npmjs which is different from loopback-connector-es ... this will let the following 2 packages follow their own version control, for example:

bharathkontham commented 6 years ago

Published package https://www.npmjs.com/package/loopback-connector-esv6