private List<IndexField> getFields(final DocRef docRef) {
        final ResultPage<IndexField> resultPage = indexFieldDao.findFields(
                new FindFieldCriteria(
                        new PageRequest(),
                        FindFieldCriteria.DEFAULT_SORT_LIST,
                        docRef));
        return resultPage.getValues();
    }
Make sure multiple threads can concurrently add different lists of fields
stroom-index/stroom-index-impl-db/src/test/java/stroom/index/impl/db/TestIndexFieldDaoImpl.java