Because Lucene's Collector is not an interface, we have to create extensions of it.
Every search needs a fresh instance of a Collector, still for each field the same name and type are going to be used.
Replacement of Integer which is mutable, so that we can avoid creating many objects while counting hits for each facet.
Wraps a FieldCacheCollector in such a way that
Copyright © 2006-2015 Red Hat, Inc. All Rights Reserved