Fix warning and some app stuff for ES 7.x

This commit is contained in:
Arylide 2020-05-27 18:59:13 -07:00
parent 72521c40c7
commit 884334b622
3 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ settings:
filter:
my_ngram:
type: edgeNGram
type: edge_ngram
min_gram: 1
max_gram: 15
fullword_min:

View File

@ -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) %}
<div class="table-responsive">
<table class="table table-bordered table-hover table-striped torrent-list">
<thead>

View File

@ -167,7 +167,7 @@ def home(rss):
else:
rss_query_string = _generate_query_string(
search_term, category, quality_filter, user_name)
max_results = min(max_search_results, query_results['hits']['total'])
max_results = min(max_search_results, query_results['hits']['total']['value'])
# change p= argument to whatever you change page_parameter to or pagination breaks
pagination = Pagination(p=query_args['page'], per_page=results_per_page,
total=max_results, bs_version=3, page_parameter='p',