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

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.3
    • Fix Version/s: None
    • Component/s: clients - ruby - flare
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: