projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d092caf
)
Add libxml2 include. Add filtered record count to hitsbytarget.
author
Dennis Schafroth
<dennis@indexdata.com>
Wed, 11 Apr 2012 14:40:56 +0000
(16:40 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Wed, 11 Apr 2012 14:40:56 +0000
(16:40 +0200)
src/session.c
patch
|
blob
|
history
diff --git
a/src/session.c
b/src/session.c
index
16b7146
..
1f55a87
100644
(file)
--- 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 "settings.h"
#include "normalize7bit.h"
+#include <libxml/tree.h>
+
#define TERMLIST_HIGH_SCORE 25
#define MAX_CHUNK 15
#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].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);
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))
{
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;
}
xmlFreeDoc(xdoc);
return -2;
}