Apache Solr open-source search software
remove unneeded solar-status
Yonik Seeley5685d5ee1cb6
diff --git a/src/java/org/apache/solr/core/SolrCore.java b/src/java/org/apache/solr/core/SolrCore.javaindex 3fe9099c7d4..3849e241f41 100644--- a/src/java/org/apache/solr/core/SolrCore.java+++ b/src/java/org/apache/solr/core/SolrCore.java@@ -113,24 +113,6 @@ public final class SolrCore {}- // TODO - what about a master that not might have a searcher normally open?- @Deprecated- public int maxDoc() {- RefCounted<SolrIndexSearcher> holder=null;- int num=0;- try {- holder = getSearcher();- SolrIndexSearcher searcher = holder.get();- num = searcher.maxDoc();- } catch (IOException e) {- log(e);- } finally {- if (holder != null) holder.decref();- }- return num;- }--// gets a non-caching searcherpublic SolrIndexSearcher newSearcher(String name) throws IOException {return new SolrIndexSearcher(schema, name,getDataDir(),false);diff --git a/src/webapp/resources/admin/index.jsp b/src/webapp/resources/admin/index.jspindex 08447a96e49..351b8c15ae8 100644--- a/src/webapp/resources/admin/index.jsp+++ b/src/webapp/resources/admin/index.jsp@@ -17,7 +17,6 @@<h3>Solr</h3></td><td>- [<a href="solar-status">Status</a>][<a href="get-file.jsp?file=schema.xml">Schema</a>][<a href="get-file.jsp?file=solrconfig.xml">Config</a>][<a href="analysis.jsp?highlight=on">Analysis</a>]diff --git a/src/webapp/resources/admin/solar-status.jsp b/src/webapp/resources/admin/solar-status.jspdeleted file mode 100644index 3bd959c8126..00000000000--- a/src/webapp/resources/admin/solar-status.jsp+++ /dev/null@@ -1,30 +0,0 @@-<%@ page import="java.util.Date"%>-<%--- Created by IntelliJ IDEA.- User: yonik- Date: Oct 14, 2004- Time: 2:40:56 PM- To change this template use File | Settings | File Templates.---%>-<%@ page contentType="text/xml;charset=UTF-8" language="java" %>--<?xml-stylesheet type="text/xsl" href="status.xsl"?>--<%@include file="_info.jsp" %>--<solr>- <schema><%= collectionName %></schema>- <host><%= hostname %> : <%= request.getServerPort() %></host>- <now><%= new Date().toString() %></now>- <start><%= new Date(core.getStartTime()) %></start>- <status>- <cvsId><%= core.cvsId %></cvsId>- <cvsSource><%= core.cvsSource %></cvsSource>- <cvsTag><%= core.cvsTag %></cvsTag>- <state>IN_SERVICE</state>- <schemaFile>schema.xml</schemaFile>- <schemaName><%= schema.getName() %></schemaName>- <indexDir><%= core.getDataDir() %></indexDir>- <maxDoc><%= core.maxDoc() %></maxDoc>- </status>-</solr>diff --git a/src/webapp/resources/admin/status.xsl b/src/webapp/resources/admin/status.xsldeleted file mode 100644index e1adb867f8a..00000000000--- a/src/webapp/resources/admin/status.xsl+++ /dev/null@@ -1,87 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>--<!-- $Id: status.xsl,v 1.4 2005/05/31 20:34:42 ronp Exp $ -->-<!-- $Source: /cvs/main/searching/org.apache.solrSolarServer/resources/admin/status.xsl,v $ -->-<!-- $Name: $ -->--<xsl:stylesheet- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"- version="1.0">--- <xsl:output- method="html"- indent="yes"- doctype-public="-//W3C//DTD HTML 4.01//EN"- doctype-system="http://www.w3.org/TR/html4/strict.dtd" />-- <xsl:template match="/">- <html>- <head>- <link rel="stylesheet" type="text/css" href="solr-admin.css"></link>- <link rel="icon" href="/favicon.ico" type="image/ico"></link>- <link rel="shortcut icon" href="/favicon.ico" type="image/ico"></link>- <title>SOLR Status</title>- </head>- <body>- <a href=".">- <img border="0" align="right" height="88" width="215" src="solr-head.gif" alt="SOLR">- </img>- </a>- <h1>SOLR Status (<xsl:value-of select="solr/schema" />)</h1>- <xsl:value-of select="solr/host" />- <br clear="all" />- <xsl:apply-templates/>- <br /><br />- <a href=".">Return to Admin Page</a>- </body>- </html>- </xsl:template>-- <xsl:template match="solr">- <table>- <tr>- <td>- </td>- <td>- Current Time: <xsl:value-of select="now" />- </td>- </tr>- <tr>- <td>- </td>- <td>- Server Start Time: <xsl:value-of select="start" />- </td>- </tr>- </table>- <xsl:apply-templates/>- </xsl:template>-- <xsl:template match="solr/schema" />-- <xsl:template match="solr/host" />-- <xsl:template match="solr/now" />-- <xsl:template match="solr/start" />-- <xsl:template match="solr/status">- <br clear="all" />- <h2>status</h2>- <table>- <xsl:for-each select="*">- <tr>- <td align="right">- <strong><xsl:value-of select="name()"/>: </strong>- </td>- <td>- <tt><xsl:value-of select="."/> </tt>- </td>- </tr>- </xsl:for-each>- </table>- </xsl:template>---</xsl:stylesheet>