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