.getBytes("UTF-8")), "UTF-8");
} catch (UnsupportedEncodingException e1) {
log.error("Cannot encode pattern as UTF-8");
return null;
}
AstTree ast;
try {
parser.setFunctionLookupTable(this.functionMap);
ast = parser.parse();
ResultPattern rp = new ResultPattern(ast, indexReader);
return rp;