2013/12/16 Raymond Wiker <[email protected]>

> On Mon, Dec 16, 2013 at 9:42 AM, Alessandro Benedetti <
> [email protected]> wrote:
>

> > Do you have any means of capturing the entire http (POST) request? It
> > could
> > > be that SolrJ is adding things to the header.
> >
> > I used Fiddler and Charles ( 2 softwares for monitoring http requests).
> All
> > the params added to the ContentStreamUpdateRequest appear to be in the
> > header.
> > Nothing else added by SolrJ.
> >
>
> Ok. Would it be possible for you to generate a set of captures that could
> be shared? I'd be happy to take a look.
>

Absolutely yes,you can see that all the params are appended to the URL,so
they will go in the Headers of the Http POST request, here you are  :

POST /solr/collection1/update/extract?literal.id
=C+Movies%3A1025&literal.field2=value2&....&literal.fieldN=valueN&
resource.name=Tom+Cruise&wt=javabin&version=2

User-Agent Solr[org.apache.solr.client.solrj.impl.HttpSolrServer] 1.0
Transfer-Encoding chunked
Content-Type text/plain
Host 10.0.1.16:8983
Request Header Size : 5.99 KB (6133 bytes)

Remember that is not my code, but Manifold 1.4.1 out of the box :

org.apache.manifoldcf.agents.output.solr.HttpPoster

 writeField(out,LITERAL+newFieldName,values);
// Write the commitWithin parameter
 if (commitWithin != null)
     writeField(out,COMMITWITHIN_METADATA,commitWithin);
     contentStreamUpdateRequest.setParams(out);
     contentStreamUpdateRequest.addContentStream(new
 RepositoryDocumentStream(is,length,contentType,contentName));
     contentStreamUpdateRequest.process(solrServer)



>
> > >
> > > What container are you running Solr under? Are you accessing Solr
> > directly,
> > > or via a proxy?
> >
> > Direct access through a SolrCloudServer configured on a zookeper ensemble
> > of 3 zk.
> > Solr are running on Jetty.
> >
>



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

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



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

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

Reply via email to