I am missing some data in de elasticsearch index. I don’t get the expected results. But gitlab-rake says that everything is indexed.
$ sudo gitlab-rake gitlab:elastic:projects_not_indexed
All projects are currently indexed
I want to reindex everything. What’s the best way to do this?
If I want to create a new index, I get the following weird error:
$ sudo gitlab-rake gitlab:elastic:create_empty_index
rake aborted!
Elasticsearch::Transport::Transport::Errors::BadRequest: [400] {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Failed to parse mapping [doc]: cannot create join field [join_field] on multi-types index [gitlab-production]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [doc]: cannot create join field [join_field] on multi-types index [gitlab-production]","caused_by":{"type":"illegal_state_exception","reason":"cannot create join field [join_field] on multi-types index [gitlab-production]"}},"status":400}
/opt/gitlab/embedded/service/gitlab-rails/ee/lib/gitlab/elastic/helper.rb:51:in `create_empty_index'
/opt/gitlab/embedded/service/gitlab-rails/ee/lib/tasks/gitlab/elastic.rake:60:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
Tasks: TOP => gitlab:elastic:create_empty_index
(See full trace by running task with --trace)