Skip to content
Snippets Groups Projects
Commit aa1485e3 authored by Valery Sizov's avatar Valery Sizov
Browse files

Merge branch 'minor_changes' into 'master'

Minor fixes



See merge request !14
parents dd11d758 731ec856
No related branches found
No related tags found
1 merge request!14Minor fixes
Pipeline #
Loading
Loading
@@ -331,11 +331,6 @@ module Elasticsearch
@repository_id
end
 
# For Overwrite
def self.repositories_count
10
end
unless defined?(path_to_repo)
def path_to_repo
if @path_to_repo.blank?
Loading
Loading
@@ -359,8 +354,15 @@ module Elasticsearch
def client_for_indexing
@client_for_indexing ||= Elasticsearch::Client.new retry_on_failure: 5
end
end
 
def self.search(query, type: :all, page: 1, per: 20, options: {})
module ClassMethods
# For Overwrite
def repositories_count
10
end
def search(query, type: :all, page: 1, per: 20, options: {})
results = { blobs: [], commits: []}
 
case type.to_sym
Loading
Loading
@@ -375,9 +377,7 @@ module Elasticsearch
 
results
end
end
 
module ClassMethods
def search_commit(query, page: 1, per: 20, options: {})
page ||= 1
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment