@Override
protected QueryNode preProcessNode(final QueryNode node)
throws QueryNodeException {
if (node instanceof SlopQueryNode && ((SlopQueryNode) node).getValue() != 0) {
throw new QueryNodeException(new MessageImpl("Slop queries are not supported",
node.toQueryString(new EscapeQuerySyntaxImpl())));
} else if (node instanceof MultiPhraseQueryNode) {
throw new QueryNodeException(new MessageImpl("Multi phrase queries are not supported",
node.toQueryString(new EscapeQuerySyntaxImpl())));
} else if (node instanceof MatchAllDocsQueryNodeBuilder) {
throw new QueryNodeException(new MessageImpl("MatchAllDocsQueries are not supported",
node.toQueryString(new EscapeQuerySyntaxImpl())));
}
return node;
}