Shows how to implement grouping in Lucene