You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Chris Male (JIRA)" <ji...@apache.org> on 2011/06/21 04:42:47 UTC
[jira] [Created] (LUCENE-3223) SearchWithSortTask ignores sorting
by Doc
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
Priority: Minor
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
[jira] [Commented] (LUCENE-3223) SearchWithSortTask ignores sorting
by Doc
Posted by "Uwe Schindler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13052388#comment-13052388 ]
Uwe Schindler commented on LUCENE-3223:
---------------------------------------
Thanks, nice catch!
> 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Updated] (LUCENE-3223) SearchWithSortTask ignores sorting
by Doc
Posted by "Chris Male (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Male updated LUCENE-3223:
-------------------------------
Fix Version/s: 3.3
> 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: 3.3, 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Updated] (LUCENE-3223) SearchWithSortTask ignores sorting
by Doc
Posted by "Chris Male (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Male updated LUCENE-3223:
-------------------------------
Attachment: LUCENE-3223.patch
Simple patch fixing the problem. Do I need a CHANGES entry for trivial things like this?
> 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
> 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
[jira] [Updated] (LUCENE-3223) SearchWithSortTask ignores sorting
by Doc
Posted by "Chris Male (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Male updated LUCENE-3223:
-------------------------------
Fix Version/s: 4.0
> 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Commented] (LUCENE-3223) SearchWithSortTask ignores sorting
by Doc
Posted by "Simon Willnauer (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (LUCENE-3223) SearchWithSortTask ignores sorting
by Doc
Posted by "Chris Male (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13052928#comment-13052928 ]
Chris Male commented on LUCENE-3223:
------------------------------------
Backported to 3x (hopefully):
Committed revision 1138240.
> 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: 3.3, 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Updated] (LUCENE-3223) SearchWithSortTask ignores sorting
by Doc
Posted by "Chris Male (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Male updated LUCENE-3223:
-------------------------------
Attachment: LUCENE-3223-test.patch
Test demonstrating error.
> 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
> Priority: Minor
> Attachments: LUCENE-3223-test.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
[jira] [Resolved] (LUCENE-3223) SearchWithSortTask ignores sorting
by Doc
Posted by "Chris Male (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (LUCENE-3223) SearchWithSortTask ignores sorting
by Doc
Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
[ 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Assigned] (LUCENE-3223) SearchWithSortTask ignores sorting
by Doc
Posted by "Chris Male (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Male reassigned LUCENE-3223:
----------------------------------
Assignee: Chris Male
> 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