Commit 70a7605c authored by Nick Thomas's avatar Nick Thomas

Remove an unused, broken method

parent e4424496
...@@ -527,26 +527,6 @@ module Elasticsearch ...@@ -527,26 +527,6 @@ module Elasticsearch
total_count: res.size total_count: res.size
} }
end 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 end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment