private List<LuceneSearchResults> getSearchResults(final LuceneQueryInfo queryInfo)
      throws Exception {
    final ResultCollector<?, ?> rc = executeSearch(queryInfo);
    final List<Set<LuceneSearchResults>> functionResults =
        (List<Set<LuceneSearchResults>>) rc.getResult();

    return functionResults.stream().flatMap(Collection::stream).sorted()
        .collect(Collectors.toList());
  }
Internally, we verify the resource operation permissions DATA:READ:[RegionName]
geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/cli/commands/LuceneSearchIndexCommand.java