private void addDoc(final TaskContext taskContext, final IndexWriter writer, final DocRef docRef) {
        final ContentIndexable contentIndexable = indexableMap.get(docRef.getType());
        if (contentIndexable != null) {
            final Map<String, String> dataMap = contentIndexable.getIndexableData(docRef);
            if (NullSafe.hasEntries(dataMap)) {
                dataMap.entrySet()
                        .stream()
                        .takeWhile(createTaskTerminatedCheck(taskContext))
                        .forEach(entry -> {
                            final String extension = entry.getKey();
                            final String data = entry.getValue();
                            try {
                                index(writer, docRef, extension, data);
                            } catch (final Exception e) {
                                LOGGER.error(e::getMessage, e);
                            }
                        });
            }
        }
    }
Re-index all indexable items on the system
stroom-index/stroom-index-lucene980/src/main/java/stroom/contentindex/LuceneContentIndex.java