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

Create a bulk mode for schema API

    XMLWordPrintableJSON

Details

    Description

      The current schema API does one operation at a time and the normal usecase is that users add multiple fields/fieldtypes/copyFields etc in one shot.

      example

      curl http://localhost:8983/solr/collection1/schema -H 'Content-type:application/json'  -d '{
          "add-field": {
              "name":"sell-by",
              "type":"tdate",
              "stored":true
          },
          "add-field":{
              "name":"catchall",
              "type":"text_general",
              "stored":false
          }
      }
      

      or

      curl http://localhost:8983/solr/collection1/schema -H 'Content-type:application/json'  -d '{
          "add-field":[ {
              "name":"sell-by",
              "type":"tdate",
              "stored":true
          },
          {
              "name":"catchall",
              "type":"text_general",
              "stored":false
          }]
      }
      

      Attachments

        1. SOLR-6476.patch
          59 kB
          Noble Paul
        2. SOLR-6476.patch
          55 kB
          Noble Paul
        3. SOLR-6476.patch
          45 kB
          Noble Paul
        4. SOLR-6476.patch
          44 kB
          Noble Paul
        5. SOLR-6476.patch
          36 kB
          Noble Paul
        6. SOLR-6476.patch
          36 kB
          Noble Paul
        7. SOLR-6476.patch
          33 kB
          Noble Paul
        8. SOLR-6476.patch
          20 kB
          Noble Paul

        Issue Links

          Activity

            People

              noble.paul Noble Paul
              noble.paul Noble Paul
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: