From dd81f1134baad9d05d917bfc805c10531d6f2f1c Mon Sep 17 00:00:00 2001 From: MartinMikita Date: Thu, 21 Jul 2016 11:49:17 +0200 Subject: [PATCH] Print debug times and succeed index, query in answer.html. --- web/templates/answer.html | 4 ++++ web/templates/layout.html | 3 +++ 2 files changed, 7 insertions(+) diff --git a/web/templates/answer.html b/web/templates/answer.html index 20d9692..fc3f437 100644 --- a/web/templates/answer.html +++ b/web/templates/answer.html @@ -4,6 +4,10 @@
{% if rc %}

Found {{ result['totalResults'] }} results for {{query}} in {{index}}:

+

Used index {{result['index_succeed']}} for query {{result['query_succeed']}} with modify {{result['modify']}}

+{% if 'times' in result %} +

Times: prepare {{result['times']['prepare']}}, total {{result['times']['process']}}

+{% endif %}

Showing {{ result['results'] | length }} results

diff --git a/web/templates/layout.html b/web/templates/layout.html index 9f147a6..97d1f47 100644 --- a/web/templates/layout.html +++ b/web/templates/layout.html @@ -17,6 +17,9 @@

OSM Names full text search

Search:
+{% if result and 'times' in result %} + +{% endif %} {% endblock %}