private void error(final ErrorConsumer errorConsumer,
                       final Throwable t) {
        if (!(t instanceof UncheckedInterruptedException)) {
            if (errorConsumer == null) {
                LOGGER.error(t::getMessage, t);
            } else {
                errorConsumer.add(t);
            }
        }
    }
This method takes a list of document id's and extracts the stored fields
that are required for data display. In some cases such as batch search we
only want to get stream and event ids, in these cases no values are
retrieved, only stream and event ids.
stroom-index/stroom-index-lucene980/src/main/java/stroom/index/lucene980/Lucene980ShardSearcher.java