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

Facet Values Sort Order: Add 3rd choice: Numeric Sort

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • faceting
    • None

    Description

      As a person, I need facet values to be in predictable, intuitive spots so that I can quickly and easily find the values that are appropriate to me.

      Problem Statement: Today Solr has two default facet sort orders, neither of which provides predictable, intuitive facet value orders for people when the values start with numbers.

      Goal: Address the problem where index sorts facet values how a computer would rather than how a human would. This is very problematic for E-commerce facets like 'size' and 'tire width'

      Acceptance Criteria:
      1. Sorts facet values numerically from lowest to highest
      2. Works with both numeric and string fields (thus working on values that include letters... 25 mm, 30 waist, 32 Waist, 4 Petite)
      3. If facet values don't start with a number, they are sorted alphabetically, after all values that do start with a number
      4. If facet values are equal numerically, sort the numerically equal values alphabetically. Example: 10,10 Petite,10 Tall,12, Petite, 12 Tall
      5. Integers and Floats are supported (even if string field)

      Examples:
      Women's Pants Sizes:
      8
      8 Tall
      10
      10 Petite
      10 Tall
      12
      12 Tall
      14 Petite
      26 Waist
      28 Waist
      30 Waist
      One Size

      Bike Wheel Sizes:
      20 Inches
      24 Inches
      26 Inches
      27 Inches
      27.5 Inches
      27.5+ Inches
      29 Inches
      650c
      700c

      Attachments

        Activity

          People

            Unassigned Unassigned
            Carvingturns Luke P Warwick
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: