You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Christine Poerschke (JIRA)" <ji...@apache.org> on 2016/12/02 19:48:58 UTC

[jira] [Created] (SOLR-9821) QueryComponent.prepareGrouping: //TODO: move weighting of sort

Christine Poerschke created SOLR-9821:
-----------------------------------------

             Summary: QueryComponent.prepareGrouping: //TODO: move weighting of sort
                 Key: SOLR-9821
                 URL: https://issues.apache.org/jira/browse/SOLR-9821
             Project: Solr
          Issue Type: Wish
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: Christine Poerschke
            Priority: Minor


[QueryComponent.java#L254-L259|https://github.com/apache/lucene-solr/blob/master/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java#L254-L259] has two {{//TODO: move weighting of sort}} comments. This ticket is to see what it would take to move the weighting.

Motivation: to potentially permit removal of GroupingSpecification's groupSortSpec (in favour of ResponseBuilder's sortSpec)

{code}
GroupingSpecification groupingSpec = new GroupingSpecification();
rb.setGroupingSpec(groupingSpec);

final SortSpec sortSpec = rb.getSortSpec();

//TODO: move weighting of sort
final SortSpec groupSortSpec = searcher.weightSortSpec(sortSpec, Sort.RELEVANCE);
...
groupingSpec.setGroupSortSpec(groupSortSpec);
{code}




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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org