loopbackio / loopback-connector-elastic-search

Strongloop Loopback connector for Elasticsearch
MIT License
79 stars 56 forks source link

Add mapping for Loopback model name to ES type #31

Closed lukewendling closed 8 years ago

lukewendling commented 8 years ago

We use a domain-specific model name for our loopback model but we cannot change the ES url (it's a 3rd party server install). It would be helpful to map loopback model name to ES type in URLs.

For example, we want to map our Customer model to an ES url like /index/user. Customer -> user