jamescarr/mongoosastic — pull request #106 by marsanla (2014-07-11 11:09:53+00:00)
Title: Add possibility to add settings when create doc

Add the 'settings' variable to add to options when create a doc in elastic search.

For example:
```js
TagsSchema.plugin(elastiSearch, {
host: ....,
port: ....,
settings: {
analysis: {
filter: {
autocomplete_filter: {
type: 'edge_ngram',
min_gram: 1,
max_gram: 25
}
},
analyzer: {
autocomplete: {
type: 'custom',
tokenizer: 'standard',
filter: [
'lowercase',
'autocomplete_filter'
]
}
}
}
}
});
```

PS: my IDE prettify the code, that is the reason of too much changes. :)