public NodePrefixWildcardQueryNodeBuilder() {
// empty constructor
}
public NodePrefixQuery build(final QueryNode queryNode) throws QueryNodeException {
final PrefixWildcardQueryNode wildcardNode = (PrefixWildcardQueryNode) queryNode;
final String text = wildcardNode.getText().subSequence(0, wildcardNode.getText().length() - 1).toString();
final NodePrefixQuery q = new NodePrefixQuery(new Term(wildcardNode.getFieldAsString(), text));
final MultiNodeTermQuery.RewriteMethod method = (MultiNodeTermQuery.RewriteMethod)queryNode.getTag(MultiNodeTermRewriteMethodProcessor.TAG_ID);
if (method != null) {
q.setRewriteMethod(method);
}