Package org.sindice.siren.search.node

Examples of org.sindice.siren.search.node.NodeWildcardQuery


  }

  @Test
  public void testWildcardQuery2()
  throws Exception {
    final NodeQuery q1 = new NodeWildcardQuery(new Term(SirenTestCase.DEFAULT_TEST_FIELD, "st*e.ca?as"));
    this._assertSirenQuery(new LuceneProxyNodeQuery(q1), "st*e.ca?as");
  }
View Full Code Here


  }

  public NodeWildcardQuery build(final QueryNode queryNode) throws QueryNodeException {
    final WildcardQueryNode wildcardNode = (WildcardQueryNode) queryNode;

    final NodeWildcardQuery q = new NodeWildcardQuery(new Term(wildcardNode.getFieldAsString(),
                                                         wildcardNode.getTextAsString()));

    final MultiNodeTermQuery.RewriteMethod method = (MultiNodeTermQuery.RewriteMethod)queryNode.getTag(MultiNodeTermRewriteMethodProcessor.TAG_ID);
    if (method != null) {
      q.setRewriteMethod(method);
    }
    return q;
  }
View Full Code Here

TOP

Related Classes of org.sindice.siren.search.node.NodeWildcardQuery

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.