lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Male (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (LUCENE-3223) SearchWithSortTask ignores sorting by Doc
Date Tue, 21 Jun 2011 06:57:47 GMT

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

Chris Male resolved LUCENE-3223.
--------------------------------

    Resolution: Fixed

Committed revision 1137882.

> SearchWithSortTask ignores sorting by Doc
> -----------------------------------------
>
>                 Key: LUCENE-3223
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3223
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: modules/benchmark
>            Reporter: Chris Male
>            Assignee: Chris Male
>            Priority: Minor
>         Attachments: LUCENE-3223-test.patch, LUCENE-3223.patch
>
>
> During my work in LUCENE-3912, I found the following code:
> {code}
> if (field.equals("doc")) {
>     sortField0 = SortField.FIELD_DOC;
> } if (field.equals("score")) {
>     sortField0 = SortField.FIELD_SCORE;
> } ...
> {code}
> This means the setting of SortField.FIELD_DOC is ignored.  While I don't know much about
this code, this seems like a valid setting and obviously just a bug.

--
This message is automatically generated by JIRA.
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