Ah I see now. Did you try sending multiple facet.field elements in the JSON? What error did you get? If it's not accepting the simplest interpretation, (multiple facet.field elements) then that definitely needs documentation. If it's not accepting any variation, or loosing all but the last one, that would be a bug.
Certainly updates to clarify the documentation would be good in any case (PR's are always welcome, tag me and I'll help you get it merged) -Gus On Thu, Feb 19, 2026 at 4:55 PM Dmitri Maziuk <[email protected]> wrote: > On 2/19/26 14:25, Gus Heck wrote: > > > As for the Solr case, can you back up and identify where your repeated > > attributes are meant to be used ... you say "handler" which is defined in > > solr config (which doesn't have a JSON option) > > > > Specifically which API are you trying to interact with? > > It appears to only have the JSON option now: > > https://solr.apache.org/guide/solr/latest/configuration-guide/config-api.html#how-to-map-solrconfig-xml-properties-to-json > > Specifically for modifying a request handler: > > https://solr.apache.org/guide/solr/latest/configuration-guide/config-api.html#basic-commands-for-components > -- there's a bunch of things in the XML that above "how to map to JSON" > explanation does not mention. > > Such as > ``` > <str name="facet.field">subject</str> > <str name="facet.field">country</str> > <str name="facet.field">state</str> > <str name="facet.field">county</str> > <str name="facet.field">community</str> > <str name="facet.field">decade</str> > ``` > -- I know that Solr will accept JSON with duplicate keys, what I don't > know is how the API endpoint is coded: this > ``` > "facet.field" : "subject", > "facet.field" : "country", > ... > ``` > or this: > ``` > "facet.field" : ["subject", "country", ... ] > ``` > > Dima > > -- http://www.needhamsoftware.com (work) https://a.co/d/b2sZLD9 (my fantasy fiction book)
