diff --git a/modules/grouping/src/java/org/apache/lucene/search/grouping/package.html b/modules/grouping/src/java/org/apache/lucene/search/grouping/package.html
index cd4717caf43..12156aceb0b 100644
--- a/modules/grouping/src/java/org/apache/lucene/search/grouping/package.html
+++ b/modules/grouping/src/java/org/apache/lucene/search/grouping/package.html
@@ -61,12 +61,6 @@ field fall into a single group.
collectors that for example group on multiple fields.
-
- This module abstracts away what defines group and how it is collected. All grouping collectors
- are abstract and have currently term based implementations. One can implement
- collectors that for example group on multiple fields.
-
-
Known limitations:
- For the two-pass grouping collector, the group field must be a
@@ -90,7 +84,7 @@ field fall into a single group.
CachingCollector cachedCollector = CachingCollector.create(c1, cacheScores, maxCacheRAMMB);
s.search(new TermQuery(new Term("content", searchTerm)), cachedCollector);
- Collection> topGroups = c1.getTopGroups(groupOffset, fillFields);
+ Collection<SearchGroup<BytesRef>> topGroups = c1.getTopGroups(groupOffset, fillFields);
if (topGroups == null) {
// No groups matched
@@ -117,9 +111,9 @@ field fall into a single group.
s.search(new TermQuery(new Term("content", searchTerm)), c2);
}
- TopGroups groupsResult = c2.getTopGroups(docOffset);
+ TopGroups<BytesRef> groupsResult = c2.getTopGroups(docOffset);
if (requiredTotalGroupCount) {
- groupResult = new TopGroups(groupsResult, allGroupsCollector.getGroupCount());
+ groupsResult = new TopGroups<BytesRef>(groupsResult, allGroupsCollector.getGroupCount());
}
// Render groupsResult...