mongoose-elasticsearch-xp icon indicating copy to clipboard operation
mongoose-elasticsearch-xp copied to clipboard

Add support for apiVersion option in elasticsearch client

Open pekastel opened this issue 5 years ago • 0 comments

Hi, @jbdemonte

I'm facing an issue while creating documents on older ElasticSearch Servers (5.6)

Error: [invalid_type_name_exception] Document mapping type name can't start with '_', found: [_doc]

An easy fix for this kind of errors would be to add support for apiVersion option on the ElasticSearch client.

I can prepare a pull request if you want.

pekastel avatar Oct 21 '20 18:10 pekastel