You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Max Schöfmann (JIRA)" <ji...@apache.org> on 2009/05/06 17:25:30 UTC

[jira] Closed: (SOLR-1148) with code generated by the RubyWriter sorted facets are are actually unsorted in Ruby 1.8

     [ https://issues.apache.org/jira/browse/SOLR-1148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Max Schöfmann closed SOLR-1148.
-------------------------------


> with code generated by the RubyWriter sorted facets are are actually unsorted in Ruby 1.8
> -----------------------------------------------------------------------------------------
>
>                 Key: SOLR-1148
>                 URL: https://issues.apache.org/jira/browse/SOLR-1148
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - ruby - flare
>    Affects Versions: 1.3
>            Reporter: Max Schöfmann
>            Priority: Minor
>
> Facet counts are returned as ruby Hash, which is unordered in Ruby 1.8. After evaling the hash, the sorting order is lost and the client program needs to re-sort the data.
> A fix would be returning facet counts as array of pairs, instead, e.g. 
>  [['foo', 10], ['bar', 8], ['baz', 6]]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.