drakerian / loopback-connector-elastic-search

Strongloop Loopback connector for Elasticsearch
MIT License
33 stars 86 forks source link

Feature request: Ability to index with Loopback model integration #1

Closed skyserpent closed 10 years ago

skyserpent commented 10 years ago

It would be a good idea to have common/models/model.json implement an index key as a part of the property you wish to be indexed. So when for example that document gets created in memory or in database, it also gets indexed. ... "properties": { "username": { "type": "string", "required": true, "index": true }, ...

Take a look at https://github.com/mongoosastic/mongoosastic, a cool library that does this for Mongoose.

skyserpent commented 10 years ago

Closed this as it's not something this connector needs but maybe someone could do a fork of Loopback that allows this.