X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fclient.c;h=f78530cedae58f363cae701257bb074dc76c808f;hb=6fd6f4efaaf663d850ef6ad93673fb8cd63f6170;hp=d6a815b724dc5678e96a720dd0a1295383e85019;hpb=817e3ec506c4095bc4fcc1923cee36153ef4ee43;p=pazpar2-moved-to-github.git diff --git a/src/client.c b/src/client.c index d6a815b..f78530c 100644 --- a/src/client.c +++ b/src/client.c @@ -868,6 +868,7 @@ int client_start_search(struct client *cl) if (cl->same_search == 1 && rc_prep_connection == 2) { session_log(se, YLOG_LOG, "client %s resuse result", client_get_id(cl)); + client_report_facets(cl, cl->resultset); return client_reingest(cl); } else if (!rc_prep_connection) @@ -1495,6 +1496,8 @@ int client_parse_sort(struct client *cl, struct reclist_sortparms *sp) const char *sort_strategy_and_spec = get_strategy_plus_sort(cl, sp->name); int increasing = sp->increasing; + if (!strcmp(sp->name, "relevance")) + increasing = 1; if (sort_strategy_and_spec && strlen(sort_strategy_and_spec) < 40) { char strategy[50], *p;