Examples of sortValue()


Examples of org.apache.lucene.search.ScoreDocComparator.sortValue()

        ScoreDocComparator comparator = scs.newComparator(reader, innerProperty.toString());
        ScoreNode[] nodes;
        // create lookup map
        while ((nodes = inner.nextScoreNodes()) != null) {
            sDoc.doc = nodes[innerScoreNodeIndex].getDoc(reader);
            Comparable value = comparator.sortValue(sDoc);
            if (value != null) {
                innerScoreNodes.addScoreNodes(value, nodes);
            }
        }
    }
View Full Code Here

Examples of org.apache.lucene.search.ScoreDocComparator.sortValue()

        ScoreNode[] nodes;
        // create lookup map
        while ((nodes = inner.nextScoreNodes()) != null) {
            Integer doc = new Integer(nodes[innerScoreNodeIndex].getDoc(reader));
            sDoc.doc = doc.intValue();
            Comparable value = comparator.sortValue(sDoc);
            if (value != null) {
                innerScoreNodes.addScoreNodes(value, nodes);
            }
        }
    }
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.