Lucene's grouping module
Packages 
Package Description
org.apache.lucene.search.grouping
Grouping.