Package com.k_int.util.RPNQueryRep

Examples of com.k_int.util.RPNQueryRep.AttrPlusTermNode


        //To make sure the db is made.
        GeoIndexer indexer = new GeoIndexer(testProps);
        int numIndexed = indexer.update();
        root1 = new RootNode();
        root2 = new RootNode();
        rpn1 = new AttrPlusTermNode(root1);
        rpn1.setAttr(null, new Integer(GeoProfile.USE),
            new Integer(GeoProfile.Attribute.ANY));
        rpn1.setTerm("water");
        root1.setChild(rpn1);
        testQuery = new IRQuery(new RPNTree(root1), "default");
View Full Code Here


    }

    public void testEvaluate2() throws SearchException {
        geoSource = new GeoSearchable();
        geoSource.init(testProps);
        rpn2 = new AttrPlusTermNode(root2);
        rpn2.setAttr(null, new Integer(GeoProfile.USE),
            new Integer(GeoProfile.Attribute.ORIGIN));
        rpn2.setTerm("rolf");
        root2.setChild(rpn2);
View Full Code Here

        attrMap.setProperty(ORIGIN_NUM, ORIGIN_NAME);

        converter = new RPNConverter(attrMap);
        root1 = new RootNode();
        root2 = new RootNode();
        rpn1 = new AttrPlusTermNode(root1);
        rpn1.setAttr(null, new Integer(GeoProfile.USE), new Integer(TITLE_NUM));

        rpn2 = new AttrPlusTermNode(root2);
        rpn2.setAttr(null, new Integer(GeoProfile.USE), new Integer(ORIGIN_NUM));
    }
View Full Code Here

        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);
View Full Code Here

TOP

Related Classes of com.k_int.util.RPNQueryRep.AttrPlusTermNode

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.