change default field for tag search to non-analyzed name (fixes philomena-dev/philomena#61)

This commit is contained in:
byte[] 2020-11-15 21:01:26 -05:00
parent 37adb661fb
commit 1b6be40eba

View file

@ -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",