Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4ab80f4d
Commit
4ab80f4d
authored
May 21, 2019
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port elasticsearch.md changes to EE
parent
0702d4b6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
doc/integration/elasticsearch.md
doc/integration/elasticsearch.md
+22
-2
No files found.
doc/integration/elasticsearch.md
View file @
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!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment