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,873 of 186,954
Downloads: 10,086

Daily

Ranking: 54,072 of 186,947
Downloads: 5

Depended by

RankDownloadsName

Depends on

RankDownloadsName
151,065,519,121minitest
72546,910,324pry
226191,913,591elasticsearch
64678,903,060mocha
2,2708,919,300hoe
21,75167,932hoe-yard

Owners

#GravatarHandle
1iconutilum