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: 85,177 of 188,645
Downloads: 10,395

Daily

Ranking: 92,554 of 188,635
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
141,118,030,738minitest
74566,557,090pry
233197,203,148elasticsearch
61782,829,985mocha
2,3119,064,059hoe
21,93169,598hoe-yard

Owners

#GravatarHandle
1iconutilum