search.jsp revision 1186
98N/ASee LICENSE.txt included in this distribution for the specific
98N/Afile and include the License file at LICENSE.txt.
354N/Ainclude file="projects.jspf"
354N/A QueryBuilder qb = sh.builder;
354N/A url.append("search?");
325N/A/* ---------------------- search.jsp start --------------------- */
354N/A cfg = PageConfig.get(request);
98N/A long starttime = System.currentTimeMillis();
98N/A SearchHelper searchHelper = cfg.prepareSearch()
151N/A .prepareExec(cfg.getRequestedProjects()).executeQuery().prepareSummary();
137N/A if (searchHelper.redirect != null) {
98N/A if (searchHelper.errorMsg != null
123N/A + "Error message from parser:<br/>" + searchHelper.errorMsg
98N/A .substring(SearchHelper.PARSE_ERROR_MSG.length());
98N/A if (searchHelper.errorMsg != null) {
98N/A cfg.setTitle("Search Error");
98N/A cfg.setTitle("Search");
98N/Ainclude file="httpheader.jspf"
98N/Ainclude file="pageheader.jspf"
98N/A <li><a href="<%= request.getContextPath()
98N/A for (SortOrder o : SortOrder.values()) {
98N/A if (searchHelper.order == o) {
%><li><a href="<%= url %><%= o %>"><%= o.getDesc() %></a></li><%
include file="menu.jspf"
if (searchHelper.errorMsg != null) {
} else if (searchHelper.hits == null) {
} else if (searchHelper.hits.length == 0) {
List<Suggestion> hints = searchHelper.getSuggestions();
%><p><font color="#cc0000">Did you mean (for <%= hint.name %>)</font>:<%
for (String word : hint.freetext) {
for (String word : hint.refs) {
for (String word : hint.defs) {
<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=\"sel\">").append(label).append("</span>");
buf.append("<a class=\"more\" href=\"s?n=").append(max)
buf.append("<<");
buf.append(">>");
buf.append(label);
buf.append("</a>");
slider = buf.toString();
<p class="pagetitle">Searched <b><%= searchHelper.query
searchHelper.order %></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"