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
971401b9
Commit
971401b9
authored
Mar 20, 2019
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Search snippets via elasticsearch
parent
c6b8dbaa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
0 deletions
+26
-0
app/services/search/snippet_service.rb
app/services/search/snippet_service.rb
+2
-0
ee/app/services/ee/search/snippet_service.rb
ee/app/services/ee/search/snippet_service.rb
+19
-0
ee/changelogs/unreleased/fix-elasticsearch-snippets.yml
ee/changelogs/unreleased/fix-elasticsearch-snippets.yml
+5
-0
No files found.
app/services/search/snippet_service.rb
View file @
971401b9
...
...
@@ -19,3 +19,5 @@ module Search
end
end
end
Search
::
SnippetService
.
prepend
(
::
EE
::
Search
::
SnippetService
)
ee/app/services/ee/search/snippet_service.rb
0 → 100644
View file @
971401b9
# frozen_string_literal: true
module
EE
module
Search
module
SnippetService
extend
::
Gitlab
::
Utils
::
Override
override
:execute
def
execute
if
::
Gitlab
::
CurrentSettings
.
elasticsearch_search?
::
Gitlab
::
Elastic
::
SnippetSearchResults
.
new
(
current_user
,
params
[
:search
])
else
super
end
end
end
end
end
ee/changelogs/unreleased/fix-elasticsearch-snippets.yml
0 → 100644
View file @
971401b9
---
title
:
Search snippets via elasticsearch
merge_request
:
10325
author
:
type
:
fixed
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