From 5f9e9d98a69cb560e9e10f938ce112399b611294 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Wed, 8 Apr 2020 11:11:58 -0400 Subject: [PATCH] api relevance sorting, fixes #83 --- .../controllers/api/json/search/image_controller.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/philomena_web/controllers/api/json/search/image_controller.ex b/lib/philomena_web/controllers/api/json/search/image_controller.ex index 2094097f..574569b9 100644 --- a/lib/philomena_web/controllers/api/json/search/image_controller.ex +++ b/lib/philomena_web/controllers/api/json/search/image_controller.ex @@ -15,6 +15,7 @@ defmodule PhilomenaWeb.Api.Json.Search.ImageController do case ImageLoader.search_string(conn, params["q"], sorts: sort.sorts, queries: sort.queries, + constant_score: sort.constant_score, queryable: queryable ) do {:ok, {images, _tags}} ->