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,266 of 197,814
Downloads: 11,159

Daily

Ranking: 75,212 of 197,776
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
141,326,213,374minitest
73643,301,762pry
251219,647,731elasticsearch
54999,631,674mocha
2,4109,656,574hoe
22,64774,349hoe-yard

Owners

#GravatarHandle
1iconutilum