Sha256: f70a0486cfdbd954a7e297aafbfbe9ae2b63fe5d66efc39609d0dc51045da411
Contents?: true
Size: 505 Bytes
Versions: 2
Compression:
Stored size: 505 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( self.class.format_params(custom_params.merge("index_name" => index_names)) ) Net::HTTP.get( uri(params.merge("Signature" => self.class.signature(params))) ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aliyun_open_search-0.3.0 | lib/aliyun_open_search/search.rb |
aliyun_open_search-0.2.5 | lib/aliyun_open_search/search.rb |