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

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

Michael McCandless created LUCENE-4722:
------------------------------------------

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