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

Provide a syntax for Adding Multiple Documents on REST that Uses Proper JSON Format

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • update
    • None

    Description

      Currently if you want to post a batch of documents to the update handler and need to include any options like a boost for each, you have to use a format that uses multiple "add" keys, which make it virtually impossible to build an object in another language and serialize it since most do not allow multiple keys of the same name. Many JSON formatters and validators as well will not allow this. While the JSON specs do not exclude it outright, they do say that keys "SHOULD" be unique and certainly not having unique keys results in a multitude of issues when trying to work with Solr from other languages. Please add a way to send multiple documents to the update handler via the REST Api that does not require using multiple "add" keys.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mjsminkey Mary Jo Sminkey
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: