Remove unnecesary mapping

This commit is contained in:
Brenda
2019-12-15 15:32:32 +13:00
committed by Brenda Wallace
parent a91a2c6ea5
commit 2ec23d6a08

View File

@@ -29,7 +29,7 @@ class CropSearchService
limit: limit,
load: false,
body: body
).response['hits']['hits'].map { |c| c['_source'] }
)
end
def self.recent(limit)
@@ -37,6 +37,6 @@ class CropSearchService
limit: limit,
load: false,
boost_by: { created_at: { factor: 100 } } # default factor is 1
).response['hits']['hits'].map { |c| c['_source'] }
)
end
end