class Skala::ElasticsearchAdapter::Search::ResultTransformation::SetTotalHits
Public Instance Methods
call()
click to toggle source
# 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