lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessandro Benedetti <benedetti.ale...@gmail.com>
Subject [ContentStreamUpdateRequest] POST Http Request header
Date Fri, 13 Dec 2013 10:46:00 GMT
Hi guys,
I was working with the ContentStreamUpdateRequest in solr 4.5 to send to
Solr a document with a set of metaData through an HTTP POST request.

Following the tutorial  is easy to structure the request :

*contentStreamUpdateRequest.setParam("literal.field1","value1");*

*contentStreamUpdateRequest.setParam("literal.field2","value2");*
*...*
*contentStreamUpdateRequest.addContentStream(new
RepositoryDocumentStream(is,length,contentType,contentName));*
*UpdateResponse response = contentStreamUpdateRequest.process(solrServer);*

The problem is that all the params we sets are going to fill the header of
the POST http request while only the content stream will be in the body.
So, if we have a big load of metadata we risk to fill the Header and make
the application server to reject the packet.

We can of course increase the HttpRequestHeader limit of the application
container, but it's not what I want.
Do you think is possible to send those parameters in the body of the POST ?

Thank you for your attention,

Cheers





-- 
--------------------------

Benedetti Alessandro
Visiting card : http://about.me/alessandro_benedetti

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message