Method: Elastic::Query#segment
- Defined in:
- lib/elastic/query.rb
#segment(*_params) ⇒ Object
32 33 34 35 36 |
# File 'lib/elastic/query.rb', line 32 def segment(*_params) with_clone do |config| config.groups << Commands::BuildAggFromParams.for(index: index, params: _params) end end |