<%@ page contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%> <%-- 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: $ --%> <%@ page import="java.util.Date" %> <%@ page import="java.util.List" %> <%@ page import="java.util.Collection" %> <%@ page import="org.apache.solr.request.SolrRequestHandler"%> <%@ page import="org.apache.solr.handler.ReplicationHandler" %> <%-- jsp:include page="header.jsp"/ --%> <%-- do a verbatim include so we can use the local vars --%> <%@include file="header.jsp" %> <%boolean replicationhandler = !core.getRequestHandlers(ReplicationHandler.class).isEmpty();%>
<%-- List the cores (that arent this one) so we can switch --%> <% org.apache.solr.core.CoreContainer cores = (org.apache.solr.core.CoreContainer)request.getAttribute("org.apache.solr.CoreContainer"); if (cores!=null) { Collection names = cores.getCoreNames(); if (names.size() > 1) {%><% }}%> <% // 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" ) ); %>

Solr

<% if (null != core.getSchemaResource()) { %> [Schema] <% } if (null != core.getConfigResource()) { %> [Config] <% } %> [Analysis] [Schema Browser] <%if(replicationhandler){%>[Replication]<%}%>
[Statistics] [Info] [Distribution] [Ping] [Logging]
Cores:
<% 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 { %>[<%=lname%>]<% } }%>
App server:
[Java Properties] [Thread Dump] <% if (enabledFile!=null) if (isEnabled) { %> [Disable] <% } else { %> [Enable] <% } %>

Make a Query

[Full Interface]
Query String:

Assistance

[Documentation] [Issue Tracker] [Send Email]
[Solr Query Syntax]
Current Time: <%= new Date() %>
Server Start At: <%= new Date(core.getStartTime()) %>