From 1d0b929d13979c1e3c2cbbf708e4be5ab68af0cb Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Wed, 11 Apr 2012 16:40:56 +0200 Subject: [PATCH] Add libxml2 include. Add filtered record count to hitsbytarget. --- src/session.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/session.c b/src/session.c index 16b7146..1f55a87 100644 --- a/src/session.c +++ b/src/session.c @@ -76,6 +76,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "settings.h" #include "normalize7bit.h" +#include + #define TERMLIST_HIGH_SCORE 25 #define MAX_CHUNK 15 @@ -962,6 +964,7 @@ static struct hitsbytarget *hitsbytarget_nb(struct session *se, res[*count].name = *name ? name : "Unknown"; res[*count].hits = client_get_hits(cl); res[*count].records = client_get_num_records(cl); + res[*count].filtered = client_get_num_records_filtered(cl); res[*count].diagnostic = client_get_diagnostic(cl, &res[*count].addinfo); res[*count].state = client_get_state_str(cl); @@ -1541,8 +1544,7 @@ int ingest_record(struct client *cl, const char *rec, if (!check_record_filter(root, sdb)) { - session_log(se, YLOG_LOG, "Filtered out record no %d from %s", - record_no, sdb->database->id); + session_log(se, YLOG_LOG, "Filtered out record no %d from %s", record_no, sdb->database->id); xmlFreeDoc(xdoc); return -2; } -- 1.7.10.4