Categories: None [Edit]
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,361 of 183,107
Downloads: 9,488
Daily
Ranking: 53,556 of 183,092
Downloads: 1
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|
Owners
# | Gravatar | Handle |
---|---|---|
1 | utilum |