Skip to content

Commit

Permalink
Merge pull request #178 from guardian/order-by-relevance
Browse files Browse the repository at this point in the history
  • Loading branch information
Fweddi authored Apr 5, 2023
2 parents 5b3e6ff + 85c7504 commit da6ce1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/StoryPackagesController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class StoryPackagesController(config: ApplicationConfiguration, components: Cont
else
config.contentApi.packagesLiveHost

val url = s"$contentApiHost/packages?order-by=newest&q=$encodedTerm${config.contentApi.key.map(key => s"&api-key=$key").getOrElse("")}"
val url = s"$contentApiHost/packages?order-by=relevance&q=$encodedTerm${config.contentApi.key.map(key => s"&api-key=$key").getOrElse("")}"

Logger.info(s"Proxying search query to: $url")
wsClient.url(url).get().flatMap { response =>
Expand Down

0 comments on commit da6ce1a

Please sign in to comment.