You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2013/01/27 14:03:12 UTC

[jira] [Commented] (LUCENE-4722) Can we move SortField.Type.SCORE/DOC to singleton SortField instances instead...?

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

Robert Muir commented on LUCENE-4722:
-------------------------------------

the fact there is a ".Type.CUSTOM" tells us this entire design is wrong!
                
> Can we move SortField.Type.SCORE/DOC to singleton SortField instances instead...?
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-4722
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4722
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Michael McCandless
>             Fix For: 4.2, 5.0
>
>
> It's ... weird that you can do eg new SortField("myfield", SortField.Type.SCORE).
> We already have dedicated SortField.FIELD_SCORE and FIELD_DOC ... so I think apps should use those and never make a new SortField for them?

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