Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-1148

with code generated by the RubyWriter sorted facets are are actually unsorted in Ruby 1.8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • 1.3
    • None
    • clients - ruby - flare
    • None

    Description

      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]]

      Attachments

        Activity

          People

            Unassigned Unassigned
            schoefmax Max Schöfmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: