Commit 1921c963 authored by Valery Sizov's avatar Valery Sizov

Merge branch 'patch-1' into 'master'

Update elasticsearch.md with more details

Added info for running the index for all available indexes and clarification about how the process keep ElasticSearch up-to-date

See merge request !369
parents 4bc65622 d701fd77
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment