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
(parent:
8f18ee1
)
sortmap relevance always uses increasing=1 PAZ-930
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 10 Apr 2014 13:20:17 +0000
(15:20 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 10 Apr 2014 13:20:17 +0000
(15:20 +0200)
src/client.c
patch
|
blob
|
history
diff --git
a/src/client.c
b/src/client.c
index
d6a815b
..
fbfc564
100644
(file)
--- a/
src/client.c
+++ b/
src/client.c
@@
-1495,6
+1495,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;