RubyGems Navigation menu

es_tractor 0.0.6

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

Gemfile:
= クリップボードにコピー コピー完了!

インストール:
=

バージョン履歴:

  1. 0.0.6 - October 22, 2017 (10.5KB)
  2. 0.0.5 - October 12, 2017 (10.5KB)
  3. 0.0.4 - September 09, 2017 (9.5KB)
  4. 0.0.3 - September 09, 2017 (9KB)
  5. 0.0.2 - September 04, 2017 (8.5KB)
全てのバージョンを表示(全6件)

Runtime依存関係 (1):

elasticsearch >= 5.0.4, ~> 5.0

Development依存関係 (5):

hoe ~> 3.16
hoe-yard >= 0.1.3
minitest >= 5.10.3, ~> 5.10
mocha >= 1.3.0, ~> 1.3
pry ~> 0.10.4

所有者:

作者:

  • Oz Shelach

SHA 256チェックサム:

2a10eb7589a0b27313ae0d5db9929ce0328cfe47eb3384babab0238b5212c1ed

累計ダウンロード数 9,061

このバージョンのみ 2,219

ライセンス:

MIT

必要なRubyのバージョン: ~> 2.0

リンク: