Package com.k_int.IR.QueryModels

Examples of com.k_int.IR.QueryModels.RPNTree


            searcher = new IndexSearcher(databases.get(0).toString());

            // Analyzer analyzer = new StopAnalyzer();
            LOGGER.finer("Evaluating Query: " + q.query);

            RPNTree rpnQuery = (RPNTree) q.query;
            RPNConverter converter = new RPNConverter(attrMap);
            Query indexQuery = converter.toLuceneQuery(rpnQuery.toRPN());
            LOGGER.finer("internal query is " + indexQuery.toString("field"));
            hits = searcher.search(indexQuery);
            LOGGER.finer(hits.length() + " total matching documents");

            //Log the first ten hits for diagnostic purposes.
View Full Code Here


        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

        rpn2.setAttr(null, new Integer(GeoProfile.USE),
            new Integer(GeoProfile.Attribute.ORIGIN));
        rpn2.setTerm("rolf");
        root2.setChild(rpn2);

        IRQuery testQuery2 = new IRQuery(new RPNTree(root2), "default");
        GeoSearchTask task = (GeoSearchTask) geoSource.createTask(testQuery2,
                null);
        task.evaluate(2000);
        assertEquals(1, task.getFragmentCount());
    }
View Full Code Here

TOP

Related Classes of com.k_int.IR.QueryModels.RPNTree

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.