2006-07-19 14:48:16 -04:00
|
|
|
<%@ page contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
|
2006-11-09 18:13:58 -05:00
|
|
|
<%--
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
|
|
this work for additional information regarding copyright ownership.
|
|
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
(the "License"); you may not use this file except in compliance with
|
|
|
|
the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
--%>
|
|
|
|
|
|
|
|
<%-- $Id$ --%>
|
|
|
|
<%-- $Source: /cvs/main/searching/SolrServer/resources/admin/index.jsp,v $ --%>
|
|
|
|
<%-- $Name: $ --%>
|
2006-01-26 00:37:29 -05:00
|
|
|
|
2006-05-02 13:42:28 -04:00
|
|
|
<%@ page import="java.util.Date" %>
|
2008-08-18 11:08:28 -04:00
|
|
|
<%@ page import="java.util.List" %>
|
|
|
|
<%@ page import="java.util.Collection" %>
|
2008-10-21 05:44:43 -04:00
|
|
|
<%@ page import="org.apache.solr.request.SolrRequestHandler"%>
|
2009-07-10 06:04:29 -04:00
|
|
|
<%@ page import="org.apache.solr.handler.ReplicationHandler" %>
|
2006-02-23 13:18:38 -05:00
|
|
|
|
2006-11-09 18:13:58 -05:00
|
|
|
<%-- jsp:include page="header.jsp"/ --%>
|
|
|
|
<%-- do a verbatim include so we can use the local vars --%>
|
2006-02-22 00:53:23 -05:00
|
|
|
<%@include file="header.jsp" %>
|
2009-07-10 15:37:30 -04:00
|
|
|
<%boolean replicationhandler = !core.getRequestHandlers(ReplicationHandler.class).isEmpty();%>
|
2006-01-26 00:37:29 -05:00
|
|
|
<br clear="all">
|
|
|
|
<table>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>
|
2006-02-22 00:53:23 -05:00
|
|
|
<h3>Solr</h3>
|
2006-01-26 00:37:29 -05:00
|
|
|
</td>
|
|
|
|
<td>
|
2008-08-06 17:16:12 -04:00
|
|
|
<% if (null != core.getSchemaResource()) { %>
|
|
|
|
[<a href="file/?file=<%=core.getSchemaResource()%>">Schema</a>]
|
|
|
|
<% }
|
|
|
|
if (null != core.getConfigResource()) { %>
|
|
|
|
[<a href="file/?file=<%=core.getConfigResource()%>">Config</a>]
|
|
|
|
<% } %>
|
2007-12-21 17:23:39 -05:00
|
|
|
[<a href="analysis.jsp?highlight=on">Analysis</a>]
|
2009-07-10 15:37:30 -04:00
|
|
|
[<a href="schema.jsp">Schema Browser</a>] <%if(replicationhandler){%>[<a href="replication/index.jsp">Replication</a>]<%}%>
|
2006-01-26 00:37:29 -05:00
|
|
|
<br>
|
2007-12-21 17:23:39 -05:00
|
|
|
[<a href="stats.jsp">Statistics</a>]
|
|
|
|
[<a href="registry.jsp">Info</a>]
|
|
|
|
[<a href="distributiondump.jsp">Distribution</a>]
|
2010-10-13 13:01:13 -04:00
|
|
|
[<a href="zookeeper.jsp">ZooKeeper</a>]
|
2007-12-21 17:23:39 -05:00
|
|
|
[<a href="ping">Ping</a>]
|
2008-08-04 02:03:46 -04:00
|
|
|
[<a href="logging">Logging</a>]
|
2006-01-26 00:37:29 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2007-12-06 22:49:52 -05:00
|
|
|
<%-- List the cores (that arent this one) so we can switch --%>
|
2008-08-18 11:08:28 -04:00
|
|
|
<% org.apache.solr.core.CoreContainer cores = (org.apache.solr.core.CoreContainer)request.getAttribute("org.apache.solr.CoreContainer");
|
|
|
|
if (cores!=null) {
|
2010-07-15 01:37:27 -04:00
|
|
|
Collection<String> names = cores.getCoreNames();
|
2008-08-18 11:08:28 -04:00
|
|
|
if (names.size() > 1) {%><tr><td><strong>Cores:</strong><br></td><td><%
|
2010-07-15 01:37:27 -04:00
|
|
|
String url = request.getContextPath();
|
|
|
|
for (String name : names) {
|
|
|
|
String lname = name.length()==0 ? cores.getDefaultCoreName() : name; // use the real core name rather than the default
|
|
|
|
if(name.equals(core.getName())) {
|
|
|
|
%>[<%=lname%>]<%
|
|
|
|
} else {
|
|
|
|
%>[<a href="<%=url%>/<%=lname%>/admin/"><%=lname%></a>]<%
|
|
|
|
}
|
2007-12-06 22:49:52 -05:00
|
|
|
}%></td></tr><%
|
2008-03-25 22:09:07 -04:00
|
|
|
}}%>
|
2006-02-22 00:53:23 -05:00
|
|
|
|
2006-01-26 00:37:29 -05:00
|
|
|
<tr>
|
|
|
|
<td>
|
2006-02-14 17:04:26 -05:00
|
|
|
<strong>App server:</strong><br>
|
2006-01-26 00:37:29 -05:00
|
|
|
</td>
|
|
|
|
<td>
|
2007-12-21 17:23:39 -05:00
|
|
|
[<a href="get-properties.jsp">Java Properties</a>]
|
|
|
|
[<a href="threaddump.jsp">Thread Dump</a>]
|
2006-01-26 00:37:29 -05:00
|
|
|
<%
|
2006-02-22 00:53:23 -05:00
|
|
|
if (enabledFile!=null)
|
2006-01-26 00:37:29 -05:00
|
|
|
if (isEnabled) {
|
|
|
|
%>
|
2007-12-21 17:23:39 -05:00
|
|
|
[<a href="action.jsp?action=Disable">Disable</a>]
|
2006-01-26 00:37:29 -05:00
|
|
|
<%
|
|
|
|
} else {
|
|
|
|
%>
|
2007-12-21 17:23:39 -05:00
|
|
|
[<a href="action.jsp?action=Enable">Enable</a>]
|
2006-01-26 00:37:29 -05:00
|
|
|
<%
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2007-12-06 22:49:52 -05:00
|
|
|
|
2008-01-02 12:15:30 -05:00
|
|
|
<%
|
|
|
|
// a quick hack to get rid of get-file.jsp -- note this still spits out invalid HTML
|
|
|
|
out.write( org.apache.solr.handler.admin.ShowFileRequestHandler.getFileContents( "admin-extra.html" ) );
|
|
|
|
%>
|
2006-01-26 00:37:29 -05:00
|
|
|
|
|
|
|
</table><P>
|
|
|
|
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2006-02-11 12:17:33 -05:00
|
|
|
<h3>Make a Query</h3>
|
2006-01-26 00:37:29 -05:00
|
|
|
</td>
|
|
|
|
<td>
|
2007-12-21 17:23:39 -05:00
|
|
|
[<a href="form.jsp">Full Interface</a>]
|
2006-01-26 00:37:29 -05:00
|
|
|
</td>
|
2006-11-30 19:16:46 -05:00
|
|
|
|
2006-01-26 00:37:29 -05:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2006-11-30 19:16:46 -05:00
|
|
|
Query String:
|
2006-01-26 00:37:29 -05:00
|
|
|
</td>
|
|
|
|
<td colspan=2>
|
2008-07-12 10:59:12 -04:00
|
|
|
<form name=queryForm method="GET" action="../select/" accept-charset="UTF-8">
|
2006-07-11 08:20:46 -04:00
|
|
|
<textarea class="std" rows="4" cols="40" name="q"><%= defaultSearch %></textarea>
|
2006-12-14 08:03:40 -05:00
|
|
|
<input name="version" type="hidden" value="2.2">
|
2006-01-26 00:37:29 -05:00
|
|
|
<input name="start" type="hidden" value="0">
|
|
|
|
<input name="rows" type="hidden" value="10">
|
|
|
|
<input name="indent" type="hidden" value="on">
|
2007-07-29 16:25:02 -04:00
|
|
|
<br><input class="stdbutton" type="submit" value="search"
|
|
|
|
onclick="if (queryForm.q.value.length==0) { alert('no empty queries, please'); return false; } else { queryForm.submit(); } ">
|
2006-01-26 00:37:29 -05:00
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table><p>
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<h3>Assistance</h3>
|
|
|
|
</td>
|
|
|
|
<td>
|
2007-01-22 20:16:22 -05:00
|
|
|
[<a href="http://lucene.apache.org/solr/">Documentation</a>]
|
2006-02-14 17:04:26 -05:00
|
|
|
[<a href="http://issues.apache.org/jira/browse/SOLR">Issue Tracker</a>]
|
|
|
|
[<a href="mailto:solr-user@lucene.apache.org">Send Email</a>]
|
2006-01-26 00:37:29 -05:00
|
|
|
<br>
|
2007-06-25 17:00:16 -04:00
|
|
|
[<a href="http://wiki.apache.org/solr/SolrQuerySyntax">Solr Query Syntax</a>]
|
2006-01-26 00:37:29 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
</td>
|
|
|
|
<td>
|
2006-02-22 00:53:23 -05:00
|
|
|
Current Time: <%= new Date() %>
|
2006-01-26 00:37:29 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
</td>
|
|
|
|
<td>
|
2006-02-22 00:53:23 -05:00
|
|
|
Server Start At: <%= new Date(core.getStartTime()) %>
|
2006-01-26 00:37:29 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</body>
|
|
|
|
</html>
|