Class: Elastic::Shims::Populating
- Defined in:
- lib/elastic/shims/populating.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #handle_result(_raw, _formatter) ⇒ Object
-
#initialize(_index, _config, _child) ⇒ Populating
constructor
A new instance of Populating.
- #render(_options = {}) ⇒ Object
Methods inherited from Base
Methods included from Elastic::Support::Traversable
Constructor Details
#initialize(_index, _config, _child) ⇒ Populating
Returns a new instance of Populating.
3 4 5 6 7 |
# File 'lib/elastic/shims/populating.rb', line 3 def initialize(_index, _config, _child) super _child @index = _index @config = _config end |
Instance Method Details
#handle_result(_raw, _formatter) ⇒ Object
14 15 16 17 18 |
# File 'lib/elastic/shims/populating.rb', line 14 def handle_result(_raw, _formatter) result = super populate result result end |
#render(_options = {}) ⇒ Object
9 10 11 12 |
# File 'lib/elastic/shims/populating.rb', line 9 def render( = {}) disable_hits_source if populate_by_id? super end |