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

accespt uppercase ASC and DESC as sort orders

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.2, 6.0
    • None
    • None

    Description

      at least one user has gotten confused by doing a serach like this...

      http://localhost:8983/solr/shop/select/?indent=on&facet=true&sort=prijs%20ASC&start=0&rows=18&fl=id,prijs,prijseenhe
      id,artikelgroep&q=:&facet.field=artikelgroep&facet.mincount=1

      and getting this error...

      Can't determine Sort Order: 'prijs ASC', pos=5
      

      ... i can't think of any reason why it would be bad to accept both uppercase and lowercase versions of "asc" and "desc"

      http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201302.mbox/%3C0A03B892A1F8E14C8D9E8DCB8320052804F30FDC@EX2010-MAIL1.WIZARD.PVT%3E

      Attachments

        1. SOLR-4458.patch
          3 kB
          Shawn Heisey
        2. SOLR-4458.patch
          1.0 kB
          Shawn Heisey
        3. SOLR-4458.patch
          0.8 kB
          Shawn Heisey

        Activity

          People

            elyograg Shawn Heisey
            hossman Chris M. Hostetter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: