public static String canonicalize(QueryTree queryTree) {
        return canonicalize(queryTree, Integer.MAX_VALUE);
    }
Canonicalizes this query, allowing any query tree size

@return null if the query is valid, an error message if it is invalid
container-search/src/main/java/com/yahoo/prelude/query/QueryCanonicalizer.java