You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shawn Heisey (JIRA)" <ji...@apache.org> on 2013/02/14 20:33:13 UTC

[jira] [Updated] (SOLR-4458) accespt uppercase ASC and DESC as sort orders

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

Shawn Heisey updated SOLR-4458:
-------------------------------

    Attachment: SOLR-4458.patch

Patch is against 4.x but applies cleanly to trunk as well.

If you use a different case or mixture of case (ASC or DESc) it will still work, but the original input will be in the echoParams output.  I did not attempt to address that.
                
> accespt uppercase ASC and DESC as sort orders
> ---------------------------------------------
>
>                 Key: SOLR-4458
>                 URL: https://issues.apache.org/jira/browse/SOLR-4458
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Hoss Man
>            Priority: Minor
>         Attachments: SOLR-4458.patch
>
>
> 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...
> {noformat}
> Can't determine Sort Order: 'prijs ASC', pos=5
> {noformat}
> ... 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org