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: 84,250 of 180,469
Downloads: 9,039

Daily

Ranking: 37,537 of 180,459
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
20801,054,890minitest
63422,702,735pry
216145,689,885elasticsearch
61660,967,521mocha
1,9568,412,617hoe
20,73462,748hoe-yard

Owners

#GravatarHandle
1iconutilum