search.jsp revision 1469
0N/ASee LICENSE.txt included in this distribution for the specific
0N/Afile and include the License file at LICENSE.txt.
0N/Ainclude file="projects.jspf"
0N/A QueryBuilder qb = sh.builder;
0N/A/* ---------------------- search.jsp start --------------------- */
0N/A cfg = PageConfig.get(request);
0N/A long starttime = System.currentTimeMillis();
0N/A SearchHelper searchHelper = cfg.prepareSearch()
0N/A .prepareExec(cfg.getRequestedProjects()).executeQuery().prepareSummary();
0N/A if (searchHelper.redirect != null) {
0N/A if (searchHelper.errorMsg != null) {
0N/A cfg.setTitle("Search Error");
0N/A cfg.setTitle("Search");
0N/Ainclude file="httpheader.jspf"
0N/Ainclude file="pageheader.jspf"
0N/A <li><a href="<%= request.getContextPath()
0N/A for (SortOrder o : SortOrder.values()) {
0N/A if (searchHelper.order == o) {
0N/A if (searchHelper.errorMsg != null) {
0N/A SearchHelper.PARSE_ERROR_MSG.length())) %><%
0N/A } else if (searchHelper.hits == null) {
0N/A } else if (searchHelper.hits.length == 0) {
0N/A List<Suggestion> hints = searchHelper.getSuggestions();
0N/A for (String word : hint.freetext) {
0N/A %><a href="<%= prefix + "q=" + Util.uriEncodeQueryValue(word) %>"
0N/A ><%= Util.htmlize(word) %></a> <%
for (String word : hint.refs) {
%> <a href="<%= prefix + "refs=" + Util.uriEncodeQueryValue(word) %>"
><%= Util.htmlize(word) %></a> <%
for (String word : hint.defs) {
%> <a href="<%= prefix + "defs=" + Util.uriEncodeQueryValue(word) %>"
><%= Util.htmlize(word) %></a> <%
<p> Your search <b><%= searchHelper.query %></b> did not match any files.
int start = searchHelper.start;
int max = searchHelper.maxItems;
int totalHits = searchHelper.totalHits;
buf.append("<span class=\"rsps\">").append(label).append("</span>");
buf.append("<a class=\"rspn\" href=\"").append(prefix).append(max)
buf.append("<<");
buf.append(">>");
buf.append(label);
buf.append("</a>");
slider = buf.toString();
searchHelper.order.getDesc() %></p><%
if (slider.length() > 0) {
Results.prettyPrint(out, searchHelper, start, start + thispage);
<p><b>Completed in <%= System.currentTimeMillis() - starttime
if (slider.length() > 0) {
/* ---------------------- search.jsp end --------------------- */
include file="foot.jspf"