From: Dennis Schafroth Date: Thu, 27 Oct 2011 15:20:58 +0000 (+0200) Subject: add suggestions to hitsbytarget output X-Git-Tag: v1.6.5~2^2~5 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=9743558a37879ed475e4b006679764d536a2242b;p=pazpar2-moved-to-github.git add suggestions to hitsbytarget output --- diff --git a/src/session.c b/src/session.c index 388e94e..7623002 100644 --- 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)++; }