Package org.jahia.services.search

Examples of org.jahia.services.search.JCRNodeHit


    private Hit<?> buildHit(Row row, JCRNodeWrapper node, RenderContext context) throws RepositoryException {
        AbstractHit<?> searchHit = null;
        if (node.isFile() || node.isNodeType(Constants.NT_FOLDER)) {
            searchHit = new FileHit(node, context);
        } else {
            searchHit = new JCRNodeHit(node, context);
        }

        try {
            searchHit.setScore((float) (row.getScore() / 1000.));
View Full Code Here

TOP

Related Classes of org.jahia.services.search.JCRNodeHit

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.