Sha256: b4bf9c503d2d8018c0dc5bb22dd8a76a49020f140b6e68b7f0d746a6b64b6f43
Contents?: true
Size: 535 Bytes
Versions: 1
Compression:
Stored size: 535 Bytes
Contents
module Elastic::Nodes::Concerns module Bucketed def handle_result(_raw) buckets = _raw['buckets'].map do |raw_bucket| aggs = load_aggs_results(raw_bucket) # TODO: allow bucket aggregation to return single nested aggregation if node is # configured that way # return Elastic::Results::SimpleBucket.new(raw_bucket['key'], aggs.first) if blebliblu Elastic::Results::Bucket.new(raw_bucket['key'], aggs) end Elastic::Results::BucketCollection.new buckets end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
elastic-rails-0.5.0 | lib/elastic/nodes/concerns/bucketed.rb |