Examples of PayloadQuery


Examples of com.flaptor.hounder.searcher.query.PayloadQuery

        String statusMessage = "OK";
        try {
            AQuery query = new LazyParsedQuery(queryString);
            if (null != payloadFields) {
                for (String fieldName : payloadFields) {
                    query = new AndQuery(query, new PayloadQuery(fieldName));
                }
            }
            if (null != rangeField) {
                query = new AndQuery(query, new RangeQuery(rangeField,rangeStart,rangeEnd,true,true));
            }
View Full Code Here

Examples of com.flaptor.hounder.searcher.query.PayloadQuery

        stopSearcher();
        searcher = new CompositeSearcher();
        Execute.sleep(10000);

        // perform query
        gsr = searcher.search(new AndQuery(new TermQuery("content", "contenta"),new PayloadQuery("payload")), 0, 10, new NoGroup(), 1, null, null);
        assertEquals(gsr.groups(),2);

        // check that now, using payloads, big payload is first
        assertEquals("big", gsr.getGroup(0).last().get(0).get("docId"));
        assertEquals("small", gsr.getGroup(1).last().get(0).get("docId"));
View Full Code Here

Examples of com.flaptor.hounder.searcher.query.PayloadQuery

        int status = 0;
        String statusMessage = "OK";
        try {
            AQuery query = new LazyParsedQuery(queryString);
            if (null != payloadFieldName) {
                query = new AndQuery(query, new PayloadQuery(payloadFieldName));
            }
            sr = searcher.search(query, start, hitsPerPage, group, groupSize, andFilter, sort);
        } catch (SearcherException e) {
            logger.error("SEARCHING",e);
            status = 200;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.