Sha256: 0011a1ebf1c1987cad2c77fa1431ede87143fd7fe4f977f2c7e969ac327132a3
Contents?: true
Size: 496 Bytes
Versions: 4
Compression:
Stored size: 496 Bytes
Contents
module AliyunOpenSearch class Search < Base attr_reader :index_names def initialize(*index_names) super() @index_names = index_names.join(";") @base_url = "#{ENV["OPEN_SEARCH_HOST"]}/search" end def execute(custom_params) params = basic_params.merge( Base.format_params(custom_params.merge("index_name" => index_names)) ) Net::HTTP.get( uri(params.merge("Signature" => Search.signature(params))) ) end end end
Version data entries
4 entries across 4 versions & 1 rubygems