private String[] loadWords(final DocRef docRef) {
        final String[] words = wordListProvider.getWords(docRef);
        if (words == null) {
            throw new SearchException("Dictionary \"" + docRef + "\" not found");
        }

        return words;
    }
Convert our query objects to a LUCENE query.
stroom-index/stroom-index-lucene980/src/main/java/stroom/index/lucene980/SearchExpressionQueryBuilder.java