Class: Skala::ElasticsearchAdapter::Search::ResultTransformation::SetTotalHits
- Inherits:
-
Transformator::Transformation::Step
- Object
- Transformator::Transformation::Step
- Skala::ElasticsearchAdapter::Search::ResultTransformation::SetTotalHits
- Defined in:
- lib/skala/elasticsearch_adapter/search/result_transformation/set_total_hits.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
7 8 9 |
# File 'lib/skala/elasticsearch_adapter/search/result_transformation/set_total_hits.rb', line 7 def call target.total_hits = source.try(:[], "hits").try(:[], "total") end |