[ 
https://issues.apache.org/jira/browse/SOLR-6476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17500253#comment-17500253
 ] 

Jason Gerlowski commented on SOLR-6476:
---------------------------------------

Ah, well if it's just around for completeness, would you mind if I 
deprecated/removed the alternate "repeat the same key" syntax, at least in v2?  
Or do you feel strongly about keeping it around?

My argument I guess would be in the same vein as your [recent-ish point on 
SOLR-15951|https://issues.apache.org/jira/browse/SOLR-15951?focusedCommentId=17481471&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17481471]
 quoted below:

bq. Don't you think 2 ways to achieve the same is more complexity?

Supporting multiple syntaxes to achieve the same functionality leaves us with 
more to test, more to document, more code to maintain, etc.  Especially when 
one of the approaches has minor warts (e.g. repeated JSON keys), it feels like 
a good candidate for simplification.

> Create a bulk mode for schema API
> ---------------------------------
>
>                 Key: SOLR-6476
>                 URL: https://issues.apache.org/jira/browse/SOLR-6476
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>            Priority: Major
>              Labels: managedResource
>             Fix For: 5.0, 6.0
>
>         Attachments: SOLR-6476.patch, SOLR-6476.patch, SOLR-6476.patch, 
> SOLR-6476.patch, SOLR-6476.patch, SOLR-6476.patch, SOLR-6476.patch, 
> SOLR-6476.patch
>
>
> 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 
> {code}
> 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
>     }
> }
> {code}
> or 
> {code}
> 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
>     }]
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to