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

Martin Braun edited comment on LUCENE-6057 at 11/17/14 1:22 PM:
----------------------------------------------------------------

In order to get a stable behaviour you can always use your own ids (in your own 
field) and let them break the tie before the document id is used. I haven't 
noticed that unstable behaviour because I only needed custom sorting in 
extremely complicated cases yet and I have always sorted outside of Lucene 
because of some awkward constraints.

[~mikemccand]: Maybe that info should be added to the SortField Documentation 
as well (or at least a hint), because that's the main entry point for users 
that provide their own sorting.


was (Author: s4ke):
In order to get a stable behaviour you can always use your own ids (in your own 
field) and let them break the tie before the document id is used.

[~mikemccand]: Maybe that info should be added to the SortField Documentation 
as well (or at least a hint), because that's the main entry point for users 
that provide their own sorting.

> Clarify the Sort(SortField...) constructor)
> -------------------------------------------
>
>                 Key: LUCENE-6057
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6057
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/search
>    Affects Versions: 4.10.2, Trunk
>            Reporter: Martin Braun
>            Assignee: Michael McCandless
>            Priority: Minor
>              Labels: Clarification, Documentation, New_Users, Sort
>             Fix For: 4.10.2, 5.0, Trunk
>
>         Attachments: LUCENE-6057.patch
>
>
> I don't really know which version this affects, but I clarified the 
> documentation of the Sort(SortField...) constructor to ease the understanding 
> for new users.
> Pull Request:
> https://github.com/apache/lucene-solr/pull/20



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to