You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Thomas Corthals <th...@klascement.net> on 2022/02/19 08:46:53 UTC

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