You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Liram Vardi (JIRA)" <ji...@apache.org> on 2014/06/03 09:57:01 UTC
[jira] [Created] (SOLR-6132) UpdateRequest only ContentStream is
XML and not JavaBin
Liram Vardi created SOLR-6132:
---------------------------------
Summary: UpdateRequest only ContentStream is XML and not JavaBin
Key: SOLR-6132
URL: https://issues.apache.org/jira/browse/SOLR-6132
Project: Solr
Issue Type: Improvement
Components: clients - java, update
Reporter: Liram Vardi
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, {color:red}updateRequest.getContentStreams(){color});
} catch (Exception e) {
throw new SolrServerException(e);
}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org