From 9743558a37879ed475e4b006679764d536a2242b Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Thu, 27 Oct 2011 17:20:58 +0200 Subject: [PATCH] add suggestions to hitsbytarget output --- src/session.c | 2 ++ 1 file changed, 2 insertions(+) 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)++; } -- 1.7.10.4