api relevance sorting, fixes #83

This commit is contained in:
byte[] 2020-04-08 11:11:58 -04:00
parent f6cb193bdf
commit 5f9e9d98a6

View file

@ -15,6 +15,7 @@ defmodule PhilomenaWeb.Api.Json.Search.ImageController do
case ImageLoader.search_string(conn, params["q"], case ImageLoader.search_string(conn, params["q"],
sorts: sort.sorts, sorts: sort.sorts,
queries: sort.queries, queries: sort.queries,
constant_score: sort.constant_score,
queryable: queryable queryable: queryable
) do ) do
{:ok, {images, _tags}} -> {:ok, {images, _tags}} ->