epugh opened a new pull request, #4819:
URL: https://github.com/apache/solr/pull/4819

   https://issues.apache.org/jira/browse/SOLR-18152
   
   
   
   # Description
   
   During integration of SchemaDesigner V2 APIS into Admin UI, it was flagged 
that we don't properly document the addField / add-field commands.  
   
   Before today's fix, the generated JS/SolrJ clients would have sent 
`{"addField": {...}}` (camelCase) , but the server doesn't consume that, it 
consumes `add-field`.
   
   
   
   # Solution
   
   Now we do:
   
   ```
   curl -X POST 
"http://localhost:8983/api/schema-designer/mySchema?schemaVersion=3"; \
     -H "Content-Type: application/json" \
     -d '{
           "add-field": {
             "name": "keywords",
             "type": "string",
             "stored": true,
             "indexed": true
           }
         }'
   ```
   
   This applies to `add-dynamic-field`, `add-copy-field`, `add-field-type` as 
well!
   
   # Tests
   
   Manual and unit
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to