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
351a1d6e
Commit
351a1d6e
authored
Jun 17, 2019
by
Nick Thomas
Committed by
Mayra Cabrera
Jun 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport docs for "Automatically index wikis in elasticsearch"
parent
c4c12f2a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
doc/integration/elasticsearch.md
doc/integration/elasticsearch.md
+5
-9
No files found.
doc/integration/elasticsearch.md
View file @
351a1d6e
...
...
@@ -275,19 +275,18 @@ You can also use the `gitlab:elastic:clear_index_status` Rake task to force the
indexer to "forget" all progress, so retrying the indexing process from the
start.
To index all wikis:
The
`index_projects`
command enqueues jobs to index all project and wiki
repositories, and most database content. However, snippets still need to be
indexed separately. To do so, run one of these commands:
```
sh
# Omnibus installations
sudo
gitlab-rake gitlab:elastic:index_
wiki
s
sudo
gitlab-rake gitlab:elastic:index_
snippet
s
# Installations from source
bundle
exec
rake gitlab:elastic:index_
wiki
s
RAILS_ENV
=
production
bundle
exec
rake gitlab:elastic:index_
snippet
s
RAILS_ENV
=
production
```
The wiki indexer also supports the
`ID_FROM`
and
`ID_TO`
parameters if you want
to limit a project set.
Enable replication and refreshing again after indexing (only if you previously disabled it):
```
bash
...
...
@@ -335,14 +334,11 @@ There are several rake tasks available to you via the command line:
-
`sudo gitlab-rake gitlab:elastic:create_empty_index`
-
`sudo gitlab-rake gitlab:elastic:clear_index_status`
-
`sudo gitlab-rake gitlab:elastic:index_projects`
-
`sudo gitlab-rake gitlab:elastic:index_wikis`
-
`sudo gitlab-rake gitlab:elastic:index_snippets`
-
[
sudo gitlab-rake gitlab:elastic:index_projects
](
https://gitlab.com/gitlab-org/gitlab-ee/blob/master/ee/lib/tasks/gitlab/elastic.rake
)
-
This iterates over all projects and queues sidekiq jobs to index them in the background.
-
[
sudo gitlab-rake gitlab:elastic:index_projects_status
](
https://gitlab.com/gitlab-org/gitlab-ee/blob/master/ee/lib/tasks/gitlab/elastic.rake
)
-
This determines the overall status of the indexing. It is done by counting the total number of indexed projects, dividing by a count of the total number of projects, then multiplying by 100.
-
[
sudo gitlab-rake gitlab:elastic:index_wikis
](
https://gitlab.com/gitlab-org/gitlab-ee/blob/master/ee/lib/tasks/gitlab/elastic.rake
)
-
Iterates over every project, determines if said project contains wiki data, and then indexes the blobs (content) of said wiki data.
-
[
sudo gitlab-rake gitlab:elastic:create_empty_index
](
https://gitlab.com/gitlab-org/gitlab-ee/blob/master/ee/lib/tasks/gitlab/elastic.rake
)
-
This generates an empty index on the Elasticsearch side.
-
[
sudo gitlab-rake gitlab:elastic:clear_index_status
](
https://gitlab.com/gitlab-org/gitlab-ee/blob/master/ee/lib/tasks/gitlab/elastic.rake
)
...
...
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