lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SOLR-1478) Enable sort by docid
Date Wed, 30 Sep 2009 16:11:23 GMT

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

Erik Hatcher updated SOLR-1478:
-------------------------------

    Attachment: SOLR-1478.patch

This patch adds a special sort field (like "score" is implemented) to enable sorting by docid.
 

The character "#" was used simply to avoid any potential field name overlap, but this requires
URL encoding it to %23, so maybe some other string should be used?  

Here's an example URL: http://localhost:8983/solr/select?q=*:*&sort=%23%20desc&fl=id

Seems like score and docid sorting should avoid using normal field name strings, so maybe
_score_ and _docid_ or something.

I marked this for 1.4, because it's a trivial patch.  Discussion welcome.

> Enable sort by docid
> --------------------
>
>                 Key: SOLR-1478
>                 URL: https://issues.apache.org/jira/browse/SOLR-1478
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Erik Hatcher
>            Priority: Minor
>             Fix For: 1.4
>
>         Attachments: SOLR-1478.patch
>
>
> Lucene allows sorting by docid, but Solr currently does not provide a way to specify
it. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message