return new JcrSearch(this.session, expression, parser.getLanguage(), storedAtPath);
}
TypeSystem typeSystem = session.executionContext.getValueFactories().getTypeSystem();
try {
// Parsing must be done now ...
QueryCommand command = parser.parseQuery(expression, typeSystem);
if (command == null) {
// The query is not well-formed and cannot be parsed ...
throw new InvalidQueryException(JcrI18n.queryCannotBeParsedUsingLanguage.text(language, expression));
}
PlanHints hints = new PlanHints();