Categories: None [Edit]

es_tractor

https://rubygems.org/gems/es_tractor
Minimal, simple, DRY DSL for searching Elasticsearch. Takes one shallow hash argument and translates it to an elaborate one passed on to elasticsearch-api. The price: narrower options. The gain: succinctness. For example, a root <tt>:range</tt> is always a boolean filter and always includes the edges: tractor = Client.new opts = { range: { timestamp: ['now-5m', 'now'] } } tractor.search(opts) # => sends the following to Ealsticsearch: { "query": { "bool": { "filter": [ { "range": { "timestamp": { "gte":"now-5m", "lte":"now" } } } ], "must": [], } } }

Total

Ranking: 86,217 of 197,314
Downloads: 11,139

Daily

Ranking: 99,080 of 197,258
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
141,315,567,648minitest
72639,375,527pry
250218,675,007elasticsearch
54998,869,695mocha
2,4079,629,206hoe
22,63274,121hoe-yard

Owners

#GravatarHandle
1iconutilum