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": [], } } }

Required Ruby Version

~> 2.0

Authors

Oz Shelach

Versions

  1. 0.0.6
    1. source

      1. 0.0.6 source October 22, 2017 (10.5 KB)
  2. 0.0.5
    1. source

      1. 0.0.5 source October 12, 2017 (10.5 KB)
  3. 0.0.4
    1. source

      1. 0.0.4 source September 09, 2017 (9.5 KB)
  4. 0.0.3
    1. source

      1. 0.0.3 source September 09, 2017 (9 KB)
  5. 0.0.2
    1. source

      1. 0.0.2 source September 04, 2017 (8.5 KB)
Show all versions (6 total)

SHA 256 checksum