{"action":"opened","issue":{"url":"https://api.github.com/repos/mongoosastic/mongoosastic/issues/89","labels_url":"https://api.github.com/repos/mongoosastic/mongoosastic/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/mongoosastic/mongoosastic/issues/89/comments","events_url":"https://api.github.com/repos/mongoosastic/mongoosastic/issues/89/events","html_url":"https://github.com/mongoosastic/mongoosastic/issues/89","id":93884965,"number":89,"title":"Dynamically set index/type based on document value","user":{"login":"alexkavon","id":1262355,"avatar_url":"https://avatars.githubusercontent.com/u/1262355?v=3","gravatar_id":"","url":"https://api.github.com/users/alexkavon","html_url":"https://github.com/alexkavon","followers_url":"https://api.github.com/users/alexkavon/followers","following_url":"https://api.github.com/users/alexkavon/following{/other_user}","gists_url":"https://api.github.com/users/alexkavon/gists{/gist_id}","starred_url":"https://api.github.com/users/alexkavon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexkavon/subscriptions","organizations_url":"https://api.github.com/users/alexkavon/orgs","repos_url":"https://api.github.com/users/alexkavon/repos","events_url":"https://api.github.com/users/alexkavon/events{/privacy}","received_events_url":"https://api.github.com/users/alexkavon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-08T20:35:51Z","updated_at":"2015-07-08T20:35:51Z","closed_at":null,"body":"Not sure if this is possible (couldn't find anything in a web search), but is it possible to dynamically set the index or type in the plugin settings?\r\n\r\nI see that you can index on demand with document.index(), however won't this index the document twice, once on save, once on the document.index() call?\r\n\r\nI was thinking of something along the lines of Model.plugin(mongoosastic, {type: this.type})"}}