[opencms-dev] CmsSolrResultList Issue

Asif G. Khan agkhan at globalrescue.com
Tue Jul 26 13:49:00 CEST 2016


I have following code in a JSP page. When I run the page in browser, it does not show anything and instead throws an error "Failed to load the bootstrap javascript: ./VAADIN/vaadinBootstrap<https://vaadin.com/forum#!/thread/2438273>.js"


<%@ page pageEncoding="UTF-8" %>
<%@ page import="org.opencms.main.*" %>
<%@ page import="org.opencms.search.*" %>
<%@ page import="org.opencms.search.solr.*" %>
<%@ page import="org.opencms.jsp.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.io.*" %>
<%
String query="fq=type:Blog-Entry";
CmsSolrResultList results = OpenCms.getSearchManager().getIndexSolr("solr_online").search(getCmsObject(), query);
%>
<h1><%= results.size() %></h1>



Thanks
Asif G. Khan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20160726/9bbf1ed6/attachment.htm>


More information about the opencms-dev mailing list