Commit ab7e8475 authored by Evan Read's avatar Evan Read

Merge branch 'docs/elastic' into 'master'

Port elasticsearch.md changes to EE

See merge request gitlab-org/gitlab-ce!28549
parents ac233e83 4ab80f4d
...@@ -340,10 +340,30 @@ curl --request PUT localhost:9200/gitlab-production/_settings --data '{ ...@@ -340,10 +340,30 @@ curl --request PUT localhost:9200/gitlab-production/_settings --data '{
} }' } }'
``` ```
A force merge should be called after enabling the refreshing above: A force merge should be called after enabling the refreshing above.
For Elasticsearch 6.x, before proceeding with the force merge, the index should be in read-only mode:
```bash
curl --request PUT localhost:9200/gitlab-production/_settings --data '{
"settings": {
"index.blocks.write": true
} }'
```
Then, initiate the force merge:
```bash ```bash
curl --request POST 'http://localhost:9200/_forcemerge?max_num_segments=5' curl --request POST 'http://localhost:9200/gitlab-production/_forcemerge?max_num_segments=5'
```
After this, if your index is in read-only, switch back to read-write:
```bash
curl --request PUT localhost:9200/gitlab-production/_settings --data '{
"settings": {
"index.blocks.write": false
} }'
``` ```
Enable Elasticsearch search in **Admin > Settings > Integrations**. That's it. Enjoy it! Enable Elasticsearch search in **Admin > Settings > Integrations**. That's it. Enjoy it!
......
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