Examples of DocumentResultImpl


Examples of org.apache.stanbol.contenthub.search.featured.DocumentResultImpl

        String mimeType = getStringValueFromSolrField(solrDocument, SolrFieldName.MIMETYPE.toString());
        String title = getStringValueFromSolrField(solrDocument, SolrFieldName.TITLE.toString());
        long enhancementCount = (Long) solrDocument.getFieldValue(SolrFieldName.ENHANCEMENTCOUNT.toString());
        String dereferencableURI = baseURI != null ? (baseURI + "contenthub/" + indexName + "/store/content/" + id) : null;
        title = (title == null || title.trim().equals("") ? id : title);
        DocumentResultImpl resultantDocument = new DocumentResultImpl(id, dereferencableURI, mimeType,
                enhancementCount, title);
        return resultantDocument;
    }
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.