X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fsolr.c;h=eaf822c65777b3feb5c72c2e9c101f31247cfe09;hb=90822107107281df9caf3ad66a693cb7403b16f8;hp=1fa0d381749fa273a73a64d0562a3488d7b6eab9;hpb=2ad2651374674c895ad59b267da6fe2d8665fabd;p=yaz-moved-to-github.git diff --git a/src/solr.c b/src/solr.c index 1fa0d38..eaf822c 100644 --- a/src/solr.c +++ b/src/solr.c @@ -20,7 +20,7 @@ #include #endif -int yaz_solr_decode(ODR o, Z_HTTP_Response *hres, Z_SRW_PDU **pdup) +int yaz_solr_decode_response(ODR o, Z_HTTP_Response *hres, Z_SRW_PDU **pdup) { #if YAZ_HAVE_XML2 const char *content_buf = hres->content_buf; @@ -132,8 +132,8 @@ int yaz_solr_decode(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;