diff --git a/application/src/main/scala/com/azavea/franklin/api/services/SearchService.scala b/application/src/main/scala/com/azavea/franklin/api/services/SearchService.scala index d9727860e..0b30ec92e 100644 --- a/application/src/main/scala/com/azavea/franklin/api/services/SearchService.scala +++ b/application/src/main/scala/com/azavea/franklin/api/services/SearchService.scala @@ -50,8 +50,9 @@ class SearchService[F[_]: Concurrent]( } ((items, links), count) <- (itemsFib, countFib).tupled.join } yield { - val withApiHost = items map { _.updateLinksWithHost(apiConfig) } - val searchResult = StacSearchCollection(Context(items.length, count), withApiHost, links) + val withApiHost = items map { _.updateLinksWithHost(apiConfig) } + val searchResult = + StacSearchCollection(Context(limit, items.length, count), withApiHost, links) val updatedFeatures = searchResult.features .map { item => ((item.collection, enableTiles) match { diff --git a/application/src/main/scala/com/azavea/franklin/datamodel/Context.scala b/application/src/main/scala/com/azavea/franklin/datamodel/Context.scala index 93eb1f50a..6582af339 100644 --- a/application/src/main/scala/com/azavea/franklin/datamodel/Context.scala +++ b/application/src/main/scala/com/azavea/franklin/datamodel/Context.scala @@ -8,6 +8,7 @@ object Context { } case class Context( + limit: Int, returned: Int, matched: Int )