mirror of https://github.com/apache/lucene.git
SOLR-10394: Rename getSortWithinGroup to getWithinGroupSort in search.grouping.Command class.
(Judith Silverman, Christine Poerschke)
This commit is contained in:
parent
ee98cdc790
commit
05749d0694
|
@ -190,6 +190,9 @@ Other Changes
|
|||
|
||||
* SOLR-9745: print errors from solr.cmd (Gopikannan Venugopalsamy via Mikhail Khludnev)
|
||||
|
||||
* SOLR-10394: Rename getSortWithinGroup to getWithinGroupSort in search.grouping.Command class.
|
||||
(Judith Silverman, Christine Poerschke)
|
||||
|
||||
================== 6.5.1 ==================
|
||||
|
||||
Bug Fixes
|
||||
|
|
|
@ -60,6 +60,6 @@ public interface Command<T> {
|
|||
/**
|
||||
* @return The sort inside a group
|
||||
*/
|
||||
Sort getSortWithinGroup();
|
||||
Sort getWithinGroupSort();
|
||||
|
||||
}
|
||||
|
|
|
@ -174,9 +174,9 @@ public class CommandHandler {
|
|||
final AllGroupHeadsCollector allGroupHeadsCollector;
|
||||
if (fieldType.getNumberType() != null) {
|
||||
ValueSource vs = fieldType.getValueSource(sf, null);
|
||||
allGroupHeadsCollector = new FunctionAllGroupHeadsCollector(vs, new HashMap(), firstCommand.getSortWithinGroup());
|
||||
allGroupHeadsCollector = new FunctionAllGroupHeadsCollector(vs, new HashMap(), firstCommand.getWithinGroupSort());
|
||||
} else {
|
||||
allGroupHeadsCollector = TermAllGroupHeadsCollector.create(firstCommand.getKey(), firstCommand.getSortWithinGroup());
|
||||
allGroupHeadsCollector = TermAllGroupHeadsCollector.create(firstCommand.getKey(), firstCommand.getWithinGroupSort());
|
||||
}
|
||||
if (collectors.isEmpty()) {
|
||||
searchWithTimeLimiter(query, filter, allGroupHeadsCollector);
|
||||
|
|
|
@ -149,7 +149,7 @@ public class QueryCommand implements Command<QueryCommandResult> {
|
|||
}
|
||||
|
||||
@Override
|
||||
public Sort getSortWithinGroup() {
|
||||
public Sort getWithinGroupSort() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -138,7 +138,7 @@ public class SearchGroupsFieldCommand implements Command<SearchGroupsFieldComman
|
|||
}
|
||||
|
||||
@Override
|
||||
public Sort getSortWithinGroup() {
|
||||
public Sort getWithinGroupSort() {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
@ -173,7 +173,7 @@ public class TopGroupsFieldCommand implements Command<TopGroups<BytesRef>> {
|
|||
}
|
||||
|
||||
@Override
|
||||
public Sort getSortWithinGroup() {
|
||||
public Sort getWithinGroupSort() {
|
||||
return sortWithinGroup;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue