问题
There are at least two different packages available on npm, loopback-connector-elastic-search and loopback-connector-es. I have not been able to connect my very basic Loopback api to my ES instance, and the sparse documentation on these two connectors is not helping.
Any guidance would be really appreciated on how I can create an API for my app using Loopback and ElasticSearch.
回答1:
Originally loopback-connector-elastic-search
was published by drakerian
but hasn't been under development since Oct 1st, 2014 if you peek into the commits: https://github.com/drakerian/loopback-connector-elastic-search
loopback-connector-es
is a fork from that original effort and is currently under active development so please use that.
https://github.com/strongloop-community/loopback-connector-elastic-search
And you'll notice that it is hosted on github under strongloop-community
which means it has a future even if the current author (me) gets hit by a truck :)
If even after referring to the instructions here: https://github.com/strongloop-community/loopback-connector-elastic-search#loopback-connector-elastic-search ... you have questions then just jump into the chat room to get some answers: https://gitter.im/strongloop-community/loopback-connector-elastic-search
来源:https://stackoverflow.com/questions/30228479/loopback-connector-for-elasticsearch