diff --git a/es_mapping.yml b/es_mapping.yml index a46718e..28462f6 100644 --- a/es_mapping.yml +++ b/es_mapping.yml @@ -51,7 +51,7 @@ settings: filter: my_ngram: - type: edgeNGram + type: edge_ngram min_gram: 1 max_gram: 15 fullword_min: diff --git a/nyaa/templates/search_results.html b/nyaa/templates/search_results.html index 25b7142..76ac131 100644 --- a/nyaa/templates/search_results.html +++ b/nyaa/templates/search_results.html @@ -17,7 +17,7 @@ {% endif %} {% endif %} -{% if (use_elastic and torrent_query.hits.total > 0) or (torrent_query.items) %} +{% if (use_elastic and torrent_query.hits.total.value > 0) or (torrent_query.items) %}