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: [email protected]
For additional commands, e-mail: [email protected]