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
70a7605c
Commit
70a7605c
authored
Aug 18, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove an unused, broken method
parent
e4424496
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
lib/elasticsearch/git/repository.rb
lib/elasticsearch/git/repository.rb
+0
-20
No files found.
lib/elasticsearch/git/repository.rb
View file @
70a7605c
...
...
@@ -527,26 +527,6 @@ module Elasticsearch
total_count:
res
.
size
}
end
def
search_file_names
(
query
,
page:
1
,
per:
20
,
options:
{})
query_hash
=
{
fields:
[
'blob.path'
],
query:
{
fuzzy:
{
'repository.blob.path'
=>
{
value:
query
}
}
},
filter:
{
term:
{
'repository.blob.rid'
=>
[
options
[
:repository_id
]].
flatten
}
},
size:
per
,
from:
per
*
(
page
-
1
)
}
self
.
__elasticsearch__
.
search
(
query_hash
)
end
end
end
end
...
...
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