Sha256: 737313906ae84dbfd36170f6d1b8edff9c00839799e1f6facbf58555847c6aaf
Contents?: true
Size: 438 Bytes
Versions: 2
Compression:
Stored size: 438 Bytes
Contents
module SearchFlip # Queries and returns the ElasticSearch version used. # # @example # SearchFlip.version # => e.g. 2.4.1 # # @return [String] The ElasticSearch version def self.version @version ||= SearchFlip::HTTPClient.get("#{Config[:base_url]}/").parse["version"]["number"] end Config = { index_prefix: nil, base_url: "http://127.0.0.1:9200", bulk_limit: 1_000, auto_refresh: false } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
search_flip-1.1.0 | lib/search_flip/config.rb |
search_flip-1.0.0 | lib/search_flip/config.rb |