lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrien Grand (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-4904) Sorter API: Make NumericDocValuesSorter able to sort in reverse order
Date Tue, 09 Apr 2013 19:26:15 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-4904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13626982#comment-13626982
] 

Adrien Grand commented on LUCENE-4904:
--------------------------------------

We can add this ReverseOrderSorter, but as far as NumericDocValuesSorter is concerned, I would
rather have the abstraction at the level of the DocComparator rather than the Sorter. This
would allow {{Sorter.sort(int,DocComparator)}} to quickly return null without allocating (potentially
lots of) memory for the doc maps if the reader is already sorted. Additionally, this would
allow for more readable diagnostics (such as "DocValues(fieldName,desc)" instead of "Reverse(DocValues(fieldName,asc))".

                
> Sorter API: Make NumericDocValuesSorter able to sort in reverse order
> ---------------------------------------------------------------------
>
>                 Key: LUCENE-4904
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4904
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Priority: Trivial
>              Labels: newdev
>             Fix For: 4.3
>
>         Attachments: LUCENE-4904.patch, LUCENE-4904.patch, LUCENE-4904.patch
>
>
> Today it is only able to sort in ascending order.

--
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


Mime
View raw message