@Override
    public Result search(Query query, Execution execution) {
        if (query.properties().get(YQL) == null) return execution.search(query);
        Result errorResult;
        try {
            errorResult = insertQuery(query, ParserEnvironment.fromExecutionContext(execution.context()));
        }
        catch (IllegalArgumentException e) {
            throw new IllegalInputException("Illegal YQL query", e);
        }
        return (errorResult == null) ? execution.search(query) : errorResult;
    }
Minimal combinator for YQL+ syntax and heuristically parsed user queries.

@author Steinar Knutsen
container-search/src/main/java/com/yahoo/search/yql/MinimalQueryInserter.java