From 1b6be40ebac6301f771ae9063190fdd200fd9ead Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sun, 15 Nov 2020 21:01:26 -0500 Subject: [PATCH] change default field for tag search to non-analyzed name (fixes philomena-dev/philomena#61) --- lib/philomena/tags/query.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena/tags/query.ex b/lib/philomena/tags/query.ex index 6688d1f1..fd905775 100644 --- a/lib/philomena/tags/query.ex +++ b/lib/philomena/tags/query.ex @@ -8,7 +8,7 @@ defmodule Philomena.Tags.Query do ~W(slug name name_in_namespace namespace implies alias_of implied_by aliases category analyzed_name), bool_fields: ~W(aliased), ngram_fields: ~W(description short_description), - default_field: {"analyzed_name", :ngram}, + default_field: {"name", :term}, aliases: %{ "implies" => "implied_tags", "implied_by" => "implied_by_tags",