-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Elasticsearch 5.6: Document mapping type name can't start with '_' #48
Comments
I ran into this as well and figured out part of it.
include Elasticsearch::Model to: include Elasticsearch::Model
document_type 'doc' You also need to add it in class ParentProject < Project
index_name RedmineElasticsearch::INDEX_NAME class ParentProject < Project
index_name RedmineElasticsearch::INDEX_NAME
document_type "doc" Now the rake task runs, but the indexes don't build with an error of: "index"=>
{"_index"=>"redmineapp_development",
"_type"=>"doc",
"_id"=>"1",
"status"=>400,
"error"=>
{"type"=>"routing_missing_exception",
"reason"=>"routing is required for [redmineapp_development]/[doc]/[1]",
"index_uuid"=>"_na_",
"index"=>"redmineapp_development"}}} |
@spikex - this looks good but I have to admit weakness: I switched to DMSF/xapian. That works well and indexes file contents. I found some of the translators had problematic dependencies for FreeBSD and omitted those, a few of the others I think aren't actually tied in to the FreeBSD config (Linux->FreeBSD adds /local/ into the path for a lot of binaries). |
@gessel, @spikex |
Attempting to get the plugin running on FreeBSD and the command:
bundle exec rake redmine_elasticsearch:reindex_all RAILS_ENV=production
yields
searching for the error indicates the previously default mapping of "_doc" is now not allowed (but corrected in 6.4+) This should be as easy as replacing "_doc" with "doc" but I'm not sure where to do so.
The text was updated successfully, but these errors were encountered: