dmitri maziuk created SOLR-18129:
------------------------------------

             Summary: update-requesthandler API broken
                 Key: SOLR-18129
                 URL: https://issues.apache.org/jira/browse/SOLR-18129
             Project: Solr
          Issue Type: Bug
    Affects Versions: 9.10.1
            Reporter: dmitri maziuk


Request handlers can have repeated values e.g. `facet.field` in the "defaults" 
section. I only tested `update-requesthandler` API endpoint with 
defaults/facet.field, but the problem may be present in other places as well.

POST'ing
"defaults" : \{
"facet.field" : "subject",
"facet.field" : "country",
...
}
returns a 200, but only the first `facet.field` is present in the updated 
handler (as returned by `/${corename}/config`)

POST'ing
"defaults" : \{
"facet.field" : ["subject","country", ...]
...
}
also returns a 200, but no `facet.field`s are present in the updated handler.

In addition, the syntax is not documented in the manual: whether is should 
accept the "programmer's" JSON (2nd variant) or "Solr JSON" with duplicate keys 
(1st variant).

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to