System.out.println("Search successfull.");
System.out.println(gsr.toString());
//Now the same example with grouping:
AGroup group = new StoredFieldGroup(groupByField);
System.out.println("Simple search successful.\n" + searcher.search(new LazyParsedQuery(query), 0, 10, group, 3, null, null).toString()); //up to 3 consecutive results within the same group.
}