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
8a69a19f
Commit
8a69a19f
authored
Feb 26, 2016
by
Valery Sizov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'es_update' of gitlab.com:gitlab-org/gitlab-ee into ee_master
parents
efd39069
726e1637
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
CHANGELOG-EE
CHANGELOG-EE
+2
-0
doc/integration/elasticsearch.md
doc/integration/elasticsearch.md
+9
-0
lib/tasks/gitlab/elastic.rake
lib/tasks/gitlab/elastic.rake
+3
-3
No files found.
CHANGELOG-EE
View file @
8a69a19f
...
...
@@ -3,6 +3,8 @@ Please view this file on the master branch, on stable branches it's out of date.
v 8.6.0 (unreleased)
- Improve weight filter for issues
- [Elastic] Add elastic checker to gitlab:check
v 8.6.0
- [Elastic] Added UPDATE_INDEX option to rake task
v 8.5.1
- Fix adding pages domain to projects in groups
...
...
doc/integration/elasticsearch.md
View file @
8a69a19f
...
...
@@ -134,6 +134,15 @@ ID_FROM=1001 ID_TO=2000 sudo gitlab-rake gitlab:elastic:index_repositories
ID_FROM=2001 sudo gitlab-rake gitlab:elastic:index_repositories
```
If you need to update any outdated indexes, you can use
the
`UPDATE_INDEX`
parameter:
```
UPDATE_INDEX=true ID_TO=1000 sudo gitlab-rake gitlab:elastic:index_repositories
```
Keep in mind that it will scan all repositories to make sure that last commit is already indexed.
To index all wikis:
```
...
...
lib/tasks/gitlab/elastic.rake
View file @
8a69a19f
...
...
@@ -4,12 +4,12 @@ namespace :gitlab do
task
index_repositories: :environment
do
Repository
.
__elasticsearch__
.
create_index!
projects
=
if
ENV
[
'NOT_INDEXED_ONLY'
]
projects
=
if
ENV
[
'UPDATE_INDEX'
]
Project
else
Project
.
includes
(
:index_status
).
where
(
"index_statuses.id IS NULL"
).
references
(
:index_statuses
)
else
Project
end
projects
=
apply_project_filters
(
projects
)
...
...
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