From: Dennis Schafroth Date: Wed, 11 Apr 2012 14:40:56 +0000 (+0200) Subject: Add libxml2 include. Add filtered record count to hitsbytarget. X-Git-Tag: v1.6.13~64 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=1d0b929d13979c1e3c2cbbf708e4be5ab68af0cb;p=pazpar2-moved-to-github.git Add libxml2 include. Add filtered record count to hitsbytarget. --- 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; }