Hi Christine

This part of the response is built from a SimpleOrderedMap and json.nl only
affects the representation of plain NamedLists.

Regards

Thomas

Op di 22 feb. 2022 om 19:27 schreef Christine Poerschke (BLOOMBERG/ LONDON)
<cpoersc...@bloomberg.net>:

> Hi Thomas,
>
> JSON responses often can be customised with the json.nl parameter [1] but
> I don't know if that is also the case here with Luke JSON or if you've
> already tried that.
>
> If one (or more) of the output formats work with Luke, could you share
> please which ones (and for which version it worked)?
>
> Thanks,
>
> Christine
>
> [1] https://solr.apache.org/guide/8_11/response-writers.html#json-nl
>
> From: users@solr.apache.org At: 02/19/22 08:47:21 UTCTo:
> users@solr.apache.org
> Subject: Duplicate keys in Luke JSON response
>
> The Luke Request Handler returns duplicate object keys in the JSON response
> for multiValued fields. Only the last value survives the trip through a
> decoder.
>
> E.g.
> http://localhost:8983/solr/techproducts/admin/luke?show=doc&id=SP2514N
>
> Snippet of the response:
>       "cat":{
>         "type":"string",
>         "schema":"I-S-UM----OF-----l",
>         "flags":"ITS-------OF------",
>         "value":"electronics",
>         "internal":"electronics",
>         "docFreq":12},
>       "cat":{
>         "type":"string",
>         "schema":"I-S-UM----OF-----l",
>         "flags":"ITS-------OF------",
>         "value":"hard drive",
>         "internal":"hard drive",
>         "docFreq":2},
>
> Is there any way to work around this while still using JSON? Or is
> switching to XML the only option?
>
> Kind regards
>
> Thomas
>
>
>

Reply via email to