aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2016-02-04 17:20:23 +0100
committerChristian Weiske <cweiske@cweiske.de>2016-02-04 17:20:50 +0100
commit9728ce82bfda5cada1fb19a921dbf6c34b76d8d6 (patch)
treeeec1e85f69d485c8d155a17bbb7b324ee82dc8dd
parent38d24c7d23ffc7bb9ec30e99f1c68698a939d15f (diff)
downloadphinde-9728ce82bfda5cada1fb19a921dbf6c34b76d8d6.tar.gz
phinde-9728ce82bfda5cada1fb19a921dbf6c34b76d8d6.zip
show query time
-rw-r--r--data/templates/search/sidebar.htm4
-rw-r--r--www/index.php2
2 files changed, 5 insertions, 1 deletions
diff --git a/data/templates/search/sidebar.htm b/data/templates/search/sidebar.htm
index eaddaeb..8665706 100644
--- a/data/templates/search/sidebar.htm
+++ b/data/templates/search/sidebar.htm
@@ -5,3 +5,7 @@
{% include 'search/sidebar-filter.htm' with {'type': 'domain', 'title': 'Domain'} %}
{% include 'search/sidebar-filter.htm' with {'type': 'language', 'title': 'Language'} %}
{% include 'search/sidebar-filter.htm' with {'type': 'type', 'title': 'Type'} %}
+
+<p class="muted">
+ Query took {{queryTime}}.
+</p>
diff --git a/www/index.php b/www/index.php
index 0412f82..2598a43 100644
--- a/www/index.php
+++ b/www/index.php
@@ -107,7 +107,7 @@ foreach ($res->aggregations as $key => &$aggregation) {
render(
'search',
array(
- 'queryTime' => round($timeEnd - $timeBegin, 2) . 'ms',
+ 'queryTime' => round($timeEnd - $timeBegin, 2) . 's',
'query' => $query,
'cleanQuery' => $cleanQuery,
'urlNoSite' => $urlNoSite,