From c7700a73d1351dfe728e2c69f4ea71f81454f2af Mon Sep 17 00:00:00 2001 From: SJ Date: Tue, 23 Oct 2012 19:16:24 +0200 Subject: [PATCH] add the number of hits, too --- webui/model/search/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/model/search/search.php b/webui/model/search/search.php index 05b73197..a182de6b 100644 --- a/webui/model/search/search.php +++ b/webui/model/search/search.php @@ -303,7 +303,7 @@ class ModelSearchSearch extends Model { $query = $this->sphx->query("SELECT id FROM " . SPHINX_MAIN_INDEX . " WHERE $a $date $attachment $direction $size $folders MATCH('$match') $sortorder LIMIT 0," . MAX_SEARCH_HITS); } - if(ENABLE_SYSLOG == 1) { syslog(LOG_INFO, sprintf("sphinx query: %s in %.2f s", $query->query, $query->exec_time)); } + if(ENABLE_SYSLOG == 1) { syslog(LOG_INFO, sprintf("sphinx query: '%s' in %.2f s, %d hits", $query->query, $query->exec_time, $query->num_rows)); } /*