You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Simon Willnauer (JIRA)" <ji...@apache.org> on 2011/06/21 08:29:47 UTC

[jira] [Commented] (LUCENE-3223) SearchWithSortTask ignores sorting by Doc

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

Simon Willnauer commented on LUCENE-3223:
-----------------------------------------

bq. Simple patch fixing the problem. Do I need a CHANGES entry for trivial things like this?
looks good, I don't think we need a changes entry for this. go ahead and commit!

> 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