public static String getNormalizedOriginalQuery(Query query) {
        return toLowerCase(query.getModel().getQueryString()).trim();
    }
Retrieve normalized original query from query object

@param query Query object from searcher
@return normalized query
container-search/src/main/java/com/yahoo/search/query/rewrite/RewriterUtils.java