Package org.sindice.siren.qparser.keyword.nodes

Examples of org.sindice.siren.qparser.keyword.nodes.WildcardNodeQueryNode


  protected QueryNode preProcessNode(final QueryNode node)
  throws QueryNodeException {
    if ((node.getParent() instanceof TwigQueryNode ||
         node.getParent() instanceof ArrayQueryNode) &&
        this.isEmptyNode(node)) {
      return new WildcardNodeQueryNode();
    }
    return node;
  }
View Full Code Here


  }

  @Test
  public void testTwigQueryNodeParent()
  throws Exception {
    final TwigQueryNode twig = new TwigQueryNode(new WildcardNodeQueryNode(),
                                                 new WildcardNodeQueryNode());
    final FieldQueryNode term = new FieldQueryNode("field", "term", 0, 4);
    assertTrue(term.getParent() == null);
    assertEquals(twig, twig.getRoot().getParent());
    assertEquals(twig, twig.getChild().getParent());
    twig.setRoot(term);
View Full Code Here

      }
      final CharTermAttribute termAtt = buffer.getAttribute(CharTermAttribute.class);

      if (numTokens == 0) {
        if (nbTwigs != 0) { // Twig special case
          return new WildcardNodeQueryNode();
        }
        return new NoTokenFoundQueryNode();
      }
      else if (numTokens == 1) {
        String term = null;
View Full Code Here

TOP

Related Classes of org.sindice.siren.qparser.keyword.nodes.WildcardNodeQueryNode

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.