public List<LuceneIndexField> getFields() {
        if (fields == null) {
            fields = new ArrayList<>();
        }
        return fields;
    }
@return A new builder for creating a {@link DocRef} for this document's type.
stroom-core-shared/src/main/java/stroom/index/shared/LuceneIndexDoc.java