[ https://issues.apache.org/jira/browse/LUCENE-3223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13052446#comment-13052446 ]
Michael McCandless commented on LUCENE-3223: -------------------------------------------- Shouldn't this be backported to 3.x too? > 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 > Fix For: 4.0 > > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org