projects
/
yaz-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:
42105f4
)
Extract and add sorting parameters
author
Dennis Schafroth
<dennis@indexdata.com>
Mon, 1 Oct 2012 12:35:47 +0000
(14:35 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Mon, 1 Oct 2012 12:35:47 +0000
(14:35 +0200)
src/solr.c
patch
|
blob
|
history
diff --git
a/src/solr.c
b/src/solr.c
index
95e0cf1
..
5863fe1
100644
(file)
--- a/
src/solr.c
+++ b/
src/solr.c
@@
-413,6
+413,15
@@
int yaz_solr_encode_request(Z_HTTP_Request *hreq, Z_SRW_PDU *srw_pdu,
yaz_add_name_value_str(encode, name, value, &i,
"fl", request->recordSchema);
+ switch(srw_pdu->u.request->sort_type)
+ {
+ case Z_SRW_sort_type_none:
+ break;
+ case Z_SRW_sort_type_sort:
+ yaz_add_name_value_str(encode, name, value, &i, "sort",
+ srw_pdu->u.request->sort.sortKeys);
+ break;
+ }
if (request->facetList)
{
Z_FacetList *facet_list = request->facetList;