lib/proxes/request/search.rb in proxes-0.4.0 vs lib/proxes/request/search.rb in proxes-0.4.1
- old
+ new
@@ -1,6 +1,7 @@
# frozen_string_literal: true
+
require 'rack'
require 'proxes/request'
module ProxES
class Request
@@ -8,12 +9,12 @@
attr_reader :index, :type
attr_reader :type
def index=(idx)
@index = idx
- self.path_info = '/' + [ index, type, id, endpoint ]
- .map { |v| v.is_a?(Array) ? v.join(',') : v }
- .select { |v| !v.nil? && v != '' }.join('/')
+ self.path_info = '/' + [index, type, id, endpoint]
+ .map { |v| v.is_a?(Array) ? v.join(',') : v }
+ .select { |v| !v.nil? && v != '' }.join('/')
end
def endpoint
'_search'
end