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
(from parent 1:
2278c11
)
add suggestions to hitsbytarget output
author
Dennis Schafroth
<dennis@indexdata.com>
Thu, 27 Oct 2011 15:20:58 +0000
(17:20 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Thu, 27 Oct 2011 15:20:58 +0000
(17:20 +0200)
src/session.c
patch
|
blob
|
history
diff --git
a/src/session.c
b/src/session.c
index
388e94e
..
7623002
100644
(file)
--- a/
src/session.c
+++ b/
src/session.c
@@
-949,6
+949,8
@@
static struct hitsbytarget *hitsbytarget_nb(struct session *se,
res[*count].connected = client_get_connection(cl) ? 1 : 0;
session_settings_dump(se, client_get_database(cl), w);
res[*count].settings_xml = nmem_strdup(nmem, wrbuf_cstr(w));
+ wrbuf_rewind(w);
+ res[*count].suggestions_xml = nmem_strdup(nmem, client_get_suggestions_xml(cl, w));
wrbuf_destroy(w);
(*count)++;
}