Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
None
-
None
Description
When creating a UpdateRequest using the following code, I noted that even though the request params include wt=javabin, the final request is being translated to XML.
I guess that this is because that the collection of ContentStreams that is returned by UpdateRequest.getContentStreams() method contains only XML ContentStream.
Should not that UpdateRequest contain JavaBin ContentStream by default or when it gets some parameter (such wt=javabin)?
The code:
UpdateRequest updateRequest = new UpdateRequest();
updateRequest.add(solrDocument);
updateRequest.setCommitWithin(-1);
SolrRequestParsers _parser = new SolrRequestParsers(null);
SolrQueryRequest req;
try {
req = _parser.buildRequestFrom(targetCore, params, updateRequest.getContentStreams());
} catch (Exception e)