Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6132

UpdateRequest contains only XML ContentStream and not JavaBin

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    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)

      { throw new SolrServerException(e); }

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            liramv Liram Vardi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment