Merge branch 'solr_client' of ssh://git.indexdata.com/home/git/pub/yaz into solr_client
[yaz-moved-to-github.git] / src / solr.c
index 1783440..eaf822c 100644 (file)
@@ -132,8 +132,8 @@ int yaz_solr_decode_response(ODR o, Z_HTTP_Response *hres, Z_SRW_PDU **pdup)
 #endif
 }
 
-int yaz_solr_encode(Z_HTTP_Request *hreq, Z_SRW_PDU *srw_pdu,
-                    ODR encode, const char *charset)
+int yaz_solr_encode_request(Z_HTTP_Request *hreq, Z_SRW_PDU *srw_pdu,
+                            ODR encode, const char *charset)
 {
     const char *solr_op = 0;
     char *name[30], *value[30];
@@ -170,6 +170,8 @@ int yaz_solr_encode(Z_HTTP_Request *hreq, Z_SRW_PDU *srw_pdu,
         }
         yaz_add_name_value_int(encode, name, value, &i,
                                "rows", srw_pdu->u.request->maximumRecords);
+        yaz_add_name_value_str(encode, name, value, &i,
+                               "fl", srw_pdu->u.request->recordSchema);
         break;
     default:
         return -1;