From d701fd7761f17ed180d2b3fbc932af406a2c0c95 Mon Sep 17 00:00:00 2001 From: Jason Deland Date: Fri, 29 Apr 2016 20:42:01 +0000 Subject: [PATCH] Update elasticsearch.md with more details --- doc/integration/elasticsearch.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/doc/integration/elasticsearch.md b/doc/integration/elasticsearch.md index 18017a4c6b53a0..a0b730a2405520 100644 --- a/doc/integration/elasticsearch.md +++ b/doc/integration/elasticsearch.md @@ -167,6 +167,15 @@ sudo gitlab-rake gitlab:elastic:index_database # Installations from source bundle exec rake gitlab:elastic:index_database RAILS_ENV=production ``` +To index all available entities: + +``` +# Omnibus installations +sudo gitlab-rake gitlab:elastic:index + +# Installations from source +bundle exec rake gitlab:elastic:index RAILS_ENV=production +``` ## Disable Elasticsearch @@ -248,7 +257,7 @@ To minimize downtime of the search feature we recommend the following: 1. Index all repositories using the `gitlab:elastic:index_repositories` Rake task (see above). You'll probably want to do this in parallel. -1. Enable Elasticsearch and restart GitLab. +1. Enable Elasticsearch and restart GitLab. Note that once enabled the index will be updated when new data is pushed to the GitLab server. 1. Run indexers for database (with the `UPDATE_INDEX=1` parameter), wikis, and repositories. By running the repository indexer twice you will be sure that -- GitLab