@Override
      public int query(Query query) throws IOException {
        TopEntriesCollector collector = new TopEntriesCollector();
        repo.query(query, 100, collector);
        return collector.size();
      }
Microbenchmark of the IndexRepository to compare an IndexRepository built on top of cache with a
stock lucene IndexWriter with a RAMDirectory.
geode-lucene/src/performanceTest/java/org/apache/geode/cache/lucene/internal/repository/IndexRepositoryImplPerformanceTest.java