_map name exception with redmine elastic search plugin


(David Gessel) #1

I realize this is likely an issue with the Redmine Elasticsearch plugin and likely requires an update from the author, but any advice would be much appreciated.

The error reported when executing a $ bundle exec rake redmine_elasticsearch:reindex_all RAILS_ENV=production --trace is

snip
2018-09-26 14:17:31 -0700: < {"acknowledged":true,"shards_acknowledged":true,"index":"redmineapp_production"}
2018-09-26 14:17:31 -0700: PUT http://127.0.0.1:9200/redmineapp_production/_mapping/_doc [status:400, request:0.023s, query:N/A]
2018-09-26 14:17:31 -0700: > {"_doc":{"_parent":{"type":"parent_project"}}}
2018-09-26 14:17:31 -0700: < {"error":{"root_cause":[{"type":"invalid_type_name_exception","reason":"Document mapping type name can't start with '_', found: [_doc]"}],"type":"invalid_type_name_exception","reason":"Document mapping type name can't start with '_', found: [_doc]"},"status":400}
2018-09-26 14:17:31 -0700: [400] {"error":{"root_cause":[{"type":"invalid_type_name_exception","reason":"Document mapping type name can't start with '_', found: [_doc]"}],"type":"invalid_type_name_exception","reason":"Document mapping type name can't start with '_', found: [_doc]"},"status":400}
rake aborted!
Elasticsearch::Transport::Transport::Errors::BadRequest: [400] {"error":{"root_cause":[{"type":"invalid_type_name_exception","reason":"Document mapping type name can't start with '_', found: [_doc]"}],"type":"invalid_type_name_exception","reason":"Document mapping type name can't start with '_', found: [_doc]"},"status":400}
/usr/local/lib/ruby/gems/2.4/gems/elasticsearch-transport-6.1.0/lib/elasticsearch/transport/transport/base.rb:205:in `__raise_transport_error'
snip

elasticsearch5-5.6.8_5
rubygem-elasticsearch-6.1.0
rubygem-elasticsearch-api-6.1.0
rubygem-elasticsearch-transport-6.1.0


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.