Case Insensitive Queries with the AEM Query Builder

Published on by Dan KlcoPicture of Me Dan Klco

Recently, I needed to perform a query using the AEM Query Builder which was case insensitive. While I normally prefer using JCR SQL2 queries, in this case Query Builder was a better fit as I wanted consuming applications to be able to manipulate the query and doing so as a map is significantly easier than doing so as a string. I was surprised to find that there was no native Query Builder Predicate for doing case insensitive queries so I ended up writing my own.