/** * Create a new twig query with the specified boolean expression as root query * <p> * The boolean expression must follow the syntax of the * {@link com.sindicetech.siren.qparser.keyword.ExtendedKeywordQueryParser}. */ public TwigQuery newTwig(final String booleanExpression) throws QueryNodeException { final TwigQuery twig = new TwigQuery(mapper, parser); twig.setRoot(booleanExpression); return twig; }