Class: Skala::ElasticsearchAdapter::Search::ResultTransformation::SetTotalHits

Inherits:
Transformator::Transformation::Step
  • Object
show all
Defined in:
lib/skala/elasticsearch_adapter/search/result_transformation/set_total_hits.rb

Instance Method Summary collapse

Instance Method Details

#callObject



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