lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christine Poerschke (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-9821) QueryComponent.prepareGrouping: //TODO: move weighting of sort
Date Fri, 02 Dec 2016 19:48:58 GMT
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


Mime
View raw message