: On the whole NamedList thing, let me put it another way.
: Should one be able to get to the response header via
: a["responseHeader"]
:   OR
: a[0]
:
: If you can only have one, the former is clearly superior.
: That means we either have to
: 1) mark the base NamedList as "ok to render as something that might be
: interpreted by a client as unordered"

sorry, i missed seeing this second followup.

the "top level" named list can probably be treated as a special case.  yes
it's a NamedList, but it the ResponseWriter is accesing it explicitly from
the SolrQueryResponse.getValues() ... it would probably be fair for
something like the JSONResponseWriter to treat it special as if it's a
Map, and if something doesn't have a name make one up (or if has the same
name as an earlier name munge it) by appending the position -- just to be
safe.

: 2) mark some other uses as "ordering is more important than accessing by key"

as i said, i'd rather invert the use case set to find where "ordering
isn't important" and change those to Maps


-Hoss

Reply via email to