Hey all,

I was playing with Solr's "snapshot" APIs recently and noticed that
the JSON response returned by /admin/collections?action=LISTSNAPSHOT
is suspiciously quirky.  The response content takes what look pretty
clearly to be name/value pairs and serializes them as sibling elements
within a JSON array.

/admin/collections?action=LISTSNAPSHOTS&collection=foo

{
  "responseHeader":{
    "status":0,
    "QTime":7},
  "snapshots":[
    "checkpoint1",[
      "name","checkpoint1",
      "status","Successful",
      "creationDate",1667576218600,
      ...

(The snippet above is partial.  See pastebin link for the full output
and steps to reproduce.)

I'm happy to take a crack at improving this but wanted to check first
whether this might actually be intentional (and therefore something we
want to maintain backcompat on).

Appreciate any clarity or context anyone can offer.

Best,

Jason

[1] Pastebin: https://paste.apache.org/opjl6

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

Reply via email to