X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fhttp_command.c;h=c752b53fdce4b93a34a57fd40d4322a19a6c25b1;hb=e671bfc150dd0a556f3eca344526b5eb7696ee1a;hp=2aca50e842655734e540fbb343da3b8cf844ebf2;hpb=5b31ba8413c62e860eba83a58852d2af37af4397;p=pazpar2-moved-to-github.git diff --git a/src/http_command.c b/src/http_command.c index 2aca50e..c752b53 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -1142,10 +1142,13 @@ static void show_records(struct http_channel *c, struct http_session *s, int act { wrbuf_printf(c->wrbuf, " %d\n", rec->relevance_score); - wrbuf_printf(c->wrbuf, " \n"); - wrbuf_xmlputs(c->wrbuf, wrbuf_cstr(rec->relevance_explain1)); - wrbuf_xmlputs(c->wrbuf, wrbuf_cstr(rec->relevance_explain2)); - wrbuf_printf(c->wrbuf, " \n"); + if (service->rank_debug) + { + wrbuf_printf(c->wrbuf, " \n"); + wrbuf_xmlputs(c->wrbuf, wrbuf_cstr(rec->relevance_explain1)); + wrbuf_xmlputs(c->wrbuf, wrbuf_cstr(rec->relevance_explain2)); + wrbuf_printf(c->wrbuf, " \n"); + } } wrbuf_puts(c->wrbuf, " "); wrbuf_xmlputs(c->wrbuf, rec->recid);