On 5/15/07, Nigel McNie <[EMAIL PROTECTED]> wrote:
Yonik Seeley wrote:
>
> '''
> The JSON response format for facets has changed to make it easier for
> clients to retain sorted order.  Use json.nl=map explicitly in clients
> to get the old behavior, or add it as a default to the request handler
> in solrconfig.xml
> '''

Thanks for pointing that out, it has fixed my issue. Though I wonder:
why was it decided to do [key, value, key, value] instead of [{key =>
value}, {key => value}] when it was found that you needed sorting? IMHO,
a little easier to work with. (I presume there's a good reason for it
though...)

Memory is one reason... a map or hash per count isn't ideal.

Another is the API for accessing such a data structure.  While it
looks fine on paper, getting a single key/value easily and efficiently
is not what a map/hash is good for.  What's a map doing in the
equation if there is only ever going to be a single key?

-Yonik

Reply via email to