@@ -144,6 +144,50 @@ Disabling the Elasticsearch integration is as easy as setting `enabled` to
to find where those settings are and don't forget to reconfigure/restart GitLab
for the changes to take effect.
## Special recommendations
### Indexing huge repositories
Indexing huge git repositories can take a while, to speed up a process you can disable an auto refreshing. In our experience you can expect 20% time drop.
```
# Disable refreshing
curl -XPUT localhost:9200/_settings -d '{
"index" : {
"refresh_interval" : "-1"
} }'
# Enable refreshing again(after indexing)
curl -XPUT localhost:9200/_settings -d '{
"index" : {
"refresh_interval" : "1s"
} }'
# A force merge should be called after enabling the refreshing above