[
https://issues.apache.org/jira/browse/LUCENE-6900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15024205#comment-15024205
]
Christine Poerschke commented on LUCENE-6900:
---------------------------------------------
Patch looks good to me. Two minor comments:
* in the {{AbstractSecondPassGroupingCollector}} constructor you replaced a
{{size() == 0}} with {{isEmpty()}} and perhaps the wording of the exception on
the following line might be changed also to mention empty rather than size==0
* in {{BlockGroupingCollector}} around line 235 there's an existing TODO
comment mentioning null as meaning "by relevance"
> Grouping sortWithinGroup should use Sort.RELEVANCE to indicate that, not null
> -----------------------------------------------------------------------------
>
> Key: LUCENE-6900
> URL: https://issues.apache.org/jira/browse/LUCENE-6900
> Project: Lucene - Core
> Issue Type: Improvement
> Components: modules/grouping
> Reporter: David Smiley
> Assignee: David Smiley
> Priority: Minor
> Attachments: LUCENE_6900.patch
>
>
> In AbstractSecondPassGroupingCollector, {{withinGroupSort}} uses a value of
> null to indicate a relevance sort. I think it's nicer to use Sort.RELEVANCE
> for this -- after all it's how the {{groupSort}} variable is handled. This
> choice is also seen in GroupingSearch; likely some other collaborators too.
> [~martijn.v.groningen] is there some wisdom in the current choice that
> escapes me? If not I'll post a patch.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]