mirror of https://github.com/apache/lucene.git
remove unneeded solar-status
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@380231 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2e67b64db8
commit
5685d5ee1c
|
@ -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 searcher
|
||||
public SolrIndexSearcher newSearcher(String name) throws IOException {
|
||||
return new SolrIndexSearcher(schema, name,getDataDir(),false);
|
||||
|
|
|
@ -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>]
|
||||
|
|
|
@ -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>
|
|
@ -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>
|
Loading…
Reference in New Issue