private String normaliseCaseIfRequired(final String string) {
        if (!caseSensitive) {
            return normaliseCase(string);
        }
        return string;
    }
Types that will need the case of pattern to be normalised if caseSensitive is true.
stroom-index/stroom-index-lucene980/src/main/java/stroom/contentindex/StringMatcher.java