retQuery = converter.toLuceneQuery((QueryNode) complex2);
term = retQuery.toString(ALL_FIELDS);
LOGGER.fine("Complex AND term is " + term);
assertTrue(term.equals("+title:or +origin:right"));
AttrPlusTermNode rpn3 = new AttrPlusTermNode(root1);
rpn3.setAttr(null, new Integer(GeoProfile.USE), new Integer(TITLE_NUM));
rpn3.setTerm("nor");
AttrPlusTermNode rpn4 = new AttrPlusTermNode(root2);
rpn4.setAttr(null, new Integer(GeoProfile.USE), new Integer(ORIGIN_NUM));
rpn4.setTerm("not");
ComplexNode complex3 = new ComplexNode(comRoot, rpn3, rpn4);
complex3.setOp(ComplexNode.COMPLEX_ANDNOT);
retQuery = converter.toLuceneQuery((QueryNode) complex3);
term = retQuery.toString(ALL_FIELDS);