private List<StringMatchLocation> equals(final String string) {
        if (string == null) {
            return Collections.emptyList();
        }
        if (caseSensitive) {
            if (string.equals(pattern)) {
                return Collections.singletonList(new StringMatchLocation(0, string.length()));
            }
        } else {
            if (string.equalsIgnoreCase(pattern)) {
                return Collections.singletonList(new StringMatchLocation(0, string.length()));
            }
        }
        return Collections.emptyList();
    }
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