From: Adam Dickmeiss Date: Mon, 1 Sep 2014 12:34:59 +0000 (+0200) Subject: Report number of filtered records in bytarget PAZ-954 X-Git-Tag: v1.7.4~6 X-Git-Url: http://jira.indexdata.com/?a=commitdiff_plain;h=78dea15933d8f4d2802fc0e4d0b9bf27d9a0f61c;p=pazpar2-moved-to-github.git Report number of filtered records in bytarget PAZ-954 --- diff --git a/src/http_command.c b/src/http_command.c index 64331a4..f4cc792 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -788,9 +788,9 @@ static void bytarget_response(struct http_channel *c, struct http_session *s, wrbuf_printf(c->wrbuf, "%d\n", ht[i].records - ht[i].filtered); + wrbuf_printf(c->wrbuf, "%d\n", ht[i].filtered); if (version >= 2) { - wrbuf_printf(c->wrbuf, "%d\n", ht[i].filtered); wrbuf_printf(c->wrbuf, "" ODR_INT_PRINTF "\n", ht[i].approximation); } diff --git a/src/session.c b/src/session.c index b132824..5f8cb7d 100644 --- a/src/session.c +++ b/src/session.c @@ -2077,8 +2077,6 @@ static int ingest_to_cluster(struct client *cl, if (check_limit_local(cl, record, record_no)) { - session_log(se, YLOG_LOG, "Facet filtered out record no %d from %s", - record_no, sdb->database->id); if (type) xmlFree(type); if (value) diff --git a/test/test_facets_10.res b/test/test_facets_10.res index 44f1bb9..7bac2b5 100644 --- a/test/test_facets_10.res +++ b/test/test_facets_10.res @@ -5,5 +5,6 @@ 4 0 2 +0 Client_Idle \ No newline at end of file diff --git a/test/test_facets_19.res b/test/test_facets_19.res index b91448e..1910a36 100644 --- a/test/test_facets_19.res +++ b/test/test_facets_19.res @@ -5,5 +5,6 @@ 6 0 2 +0 Client_Idle \ No newline at end of file diff --git a/test/test_facets_5.res b/test/test_facets_5.res index 8b8a807..ffc2e84 100644 --- a/test/test_facets_5.res +++ b/test/test_facets_5.res @@ -5,5 +5,6 @@ 7 0 7 +0 Client_Idle \ No newline at end of file diff --git a/test/test_http_21.res b/test/test_http_21.res index a156563..48290d2 100644 --- a/test/test_http_21.res +++ b/test/test_http_21.res @@ -5,5 +5,6 @@ 0 0 0 +0 Client_Idle \ No newline at end of file diff --git a/test/test_http_65.res b/test/test_http_65.res index efe653d..bd79080 100644 --- a/test/test_http_65.res +++ b/test/test_http_65.res @@ -5,5 +5,6 @@ 1 0 1 +0 Client_Idle \ No newline at end of file diff --git a/test/test_http_71.res b/test/test_http_71.res index efe653d..bd79080 100644 --- a/test/test_http_71.res +++ b/test/test_http_71.res @@ -5,5 +5,6 @@ 1 0 1 +0 Client_Idle \ No newline at end of file diff --git a/test/test_limit_limitmap_10.res b/test/test_limit_limitmap_10.res index 44ad1fb..7aa85fa 100644 --- a/test/test_limit_limitmap_10.res +++ b/test/test_limit_limitmap_10.res @@ -5,6 +5,7 @@ 10 0 10 +0 Client_Idle Target-2 @@ -12,5 +13,6 @@ 2015 0 100 +0 Client_Idle \ No newline at end of file diff --git a/test/test_limit_limitmap_13.res b/test/test_limit_limitmap_13.res index 44ad1fb..7aa85fa 100644 --- a/test/test_limit_limitmap_13.res +++ b/test/test_limit_limitmap_13.res @@ -5,6 +5,7 @@ 10 0 10 +0 Client_Idle Target-2 @@ -12,5 +13,6 @@ 2015 0 100 +0 Client_Idle \ No newline at end of file diff --git a/test/test_limit_limitmap_20.res b/test/test_limit_limitmap_20.res index 2fd0767..3802c69 100644 --- a/test/test_limit_limitmap_20.res +++ b/test/test_limit_limitmap_20.res @@ -5,5 +5,6 @@ 1 0 1 +0 Client_Idle \ No newline at end of file diff --git a/test/test_limit_limitmap_5.res b/test/test_limit_limitmap_5.res index 7735835..d23fbc8 100644 --- a/test/test_limit_limitmap_5.res +++ b/test/test_limit_limitmap_5.res @@ -5,5 +5,6 @@ 10 0 10 +0 Client_Idle \ No newline at end of file diff --git a/test/test_post_11.res b/test/test_post_11.res index 944b7ac..f5a8e90 100644 --- a/test/test_post_11.res +++ b/test/test_post_11.res @@ -5,5 +5,6 @@ 10 0 10 +0 Client_Idle \ No newline at end of file diff --git a/test/test_settings_7.res b/test/test_settings_7.res index 6ef303f..cf7fcd5 100644 --- a/test/test_settings_7.res +++ b/test/test_settings_7.res @@ -7,6 +7,7 @@ Unsupported Use attribute host_wildcard 0 +0 Client_Error diff --git a/test/test_settings_8.res b/test/test_settings_8.res index 066eca1..63a213d 100644 --- a/test/test_settings_8.res +++ b/test/test_settings_8.res @@ -5,6 +5,7 @@ 0 0 0 +0 Client_Idle diff --git a/test/test_solr_14.res b/test/test_solr_14.res index b709f6e..313fc4a 100644 --- a/test/test_solr_14.res +++ b/test/test_solr_14.res @@ -5,5 +5,6 @@ 1995 0 100 +0 Client_Idle \ No newline at end of file diff --git a/test/test_solr_19.res b/test/test_solr_19.res index 67dffe0..a47a5d4 100644 --- a/test/test_solr_19.res +++ b/test/test_solr_19.res @@ -5,5 +5,6 @@ 1995 0 200 +0 Client_Idle \ No newline at end of file diff --git a/test/test_solr_26.res b/test/test_solr_26.res index b709f6e..313fc4a 100644 --- a/test/test_solr_26.res +++ b/test/test_solr_26.res @@ -5,5 +5,6 @@ 1995 0 100 +0 Client_Idle \ No newline at end of file diff --git a/test/test_solr_5.res b/test/test_solr_5.res index b709f6e..313fc4a 100644 --- a/test/test_solr_5.res +++ b/test/test_solr_5.res @@ -5,5 +5,6 @@ 1995 0 100 +0 Client_Idle \ No newline at end of file diff --git a/test/test_sort_5.res b/test/test_sort_5.res index 67dffe0..a47a5d4 100644 --- a/test/test_sort_5.res +++ b/test/test_sort_5.res @@ -5,5 +5,6 @@ 1995 0 200 +0 Client_Idle \ No newline at end of file diff --git a/test/test_termlist_block_10.res b/test/test_termlist_block_10.res index fe72f49..3d39b01 100644 --- a/test/test_termlist_block_10.res +++ b/test/test_termlist_block_10.res @@ -5,6 +5,7 @@ 23 0 23 +0 Client_Idle id_solr @@ -12,5 +13,6 @@ 2015 0 100 +0 Client_Idle \ No newline at end of file diff --git a/test/test_termlist_block_13.res b/test/test_termlist_block_13.res index fe72f49..3d39b01 100644 --- a/test/test_termlist_block_13.res +++ b/test/test_termlist_block_13.res @@ -5,6 +5,7 @@ 23 0 23 +0 Client_Idle id_solr @@ -12,5 +13,6 @@ 2015 0 100 +0 Client_Idle \ No newline at end of file diff --git a/test/test_termlist_block_5.res b/test/test_termlist_block_5.res index 129dfa4..9643e8a 100644 --- a/test/test_termlist_block_5.res +++ b/test/test_termlist_block_5.res @@ -5,5 +5,6 @@ 23 0 23 +0 Client_Idle \ No newline at end of file diff --git a/test/test_turbomarcxml_8.res b/test/test_turbomarcxml_8.res index 76e330a..2df4e9a 100644 --- a/test/test_turbomarcxml_8.res +++ b/test/test_turbomarcxml_8.res @@ -5,5 +5,6 @@ 3 0 3 +0 Client_Idle \ No newline at end of file