rjack-solr 3.6.2.0-java → 4.0.0.0-java
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +5 -0
- data/Manifest.txt +268 -33
- data/NOTICE.txt +1 -1
- data/README.rdoc +6 -6
- data/assembly.xml +2 -2
- data/bin/rjack-solr-fg +1 -1
- data/init/rjack-solr +2 -2
- data/lib/rjack-solr.rb +7 -2
- data/lib/rjack-solr/base.rb +2 -2
- data/lib/rjack-solr/commons-cli-1.2.jar +0 -0
- data/lib/rjack-solr/config.rb +1 -1
- data/lib/rjack-solr/server.rb +1 -1
- data/lib/rjack-solr/solr-core-4.0.0.jar +0 -0
- data/lib/rjack-solr/solr-solrj-4.0.0.jar +0 -0
- data/pom.xml +19 -6
- data/test/test_solr.rb +7 -5
- data/webapp/META-INF/LICENSE.txt +0 -940
- data/webapp/META-INF/MANIFEST.MF +5 -5
- data/webapp/META-INF/NOTICE.txt +160 -93
- data/webapp/WEB-INF/web.xml +57 -43
- data/webapp/admin.html +140 -0
- data/webapp/css/chosen.css +392 -0
- data/webapp/css/styles/analysis.css +293 -0
- data/webapp/css/styles/cloud.css +331 -0
- data/webapp/css/styles/common.css +593 -0
- data/webapp/css/styles/cores.css +203 -0
- data/webapp/css/styles/dashboard.css +127 -0
- data/webapp/css/styles/dataimport.css +222 -0
- data/webapp/css/styles/index.css +195 -0
- data/webapp/css/styles/java-properties.css +33 -0
- data/webapp/css/styles/logging.css +323 -0
- data/webapp/css/styles/menu.css +272 -0
- data/webapp/css/styles/plugins.css +175 -0
- data/webapp/css/styles/query.css +137 -0
- data/webapp/css/styles/replication.css +494 -0
- data/webapp/css/styles/schema-browser.css +476 -0
- data/webapp/css/styles/threads.css +153 -0
- data/webapp/img/ZeroClipboard.swf +0 -0
- data/webapp/img/chosen-sprite.png +0 -0
- data/webapp/img/div.gif +0 -0
- data/webapp/{admin → img}/favicon.ico +0 -0
- data/webapp/img/filetypes/7z.png +0 -0
- data/webapp/img/filetypes/README +27 -0
- data/webapp/img/filetypes/ai.png +0 -0
- data/webapp/img/filetypes/aiff.png +0 -0
- data/webapp/img/filetypes/asc.png +0 -0
- data/webapp/img/filetypes/audio.png +0 -0
- data/webapp/img/filetypes/bin.png +0 -0
- data/webapp/img/filetypes/bz2.png +0 -0
- data/webapp/img/filetypes/c.png +0 -0
- data/webapp/img/filetypes/cfc.png +0 -0
- data/webapp/img/filetypes/cfm.png +0 -0
- data/webapp/img/filetypes/chm.png +0 -0
- data/webapp/img/filetypes/class.png +0 -0
- data/webapp/img/filetypes/conf.png +0 -0
- data/webapp/img/filetypes/cpp.png +0 -0
- data/webapp/img/filetypes/cs.png +0 -0
- data/webapp/img/filetypes/css.png +0 -0
- data/webapp/img/filetypes/csv.png +0 -0
- data/webapp/img/filetypes/deb.png +0 -0
- data/webapp/img/filetypes/divx.png +0 -0
- data/webapp/img/filetypes/doc.png +0 -0
- data/webapp/img/filetypes/dot.png +0 -0
- data/webapp/img/filetypes/eml.png +0 -0
- data/webapp/img/filetypes/enc.png +0 -0
- data/webapp/img/filetypes/file.png +0 -0
- data/webapp/img/filetypes/gif.png +0 -0
- data/webapp/img/filetypes/gz.png +0 -0
- data/webapp/img/filetypes/hlp.png +0 -0
- data/webapp/img/filetypes/htm.png +0 -0
- data/webapp/img/filetypes/html.png +0 -0
- data/webapp/img/filetypes/image.png +0 -0
- data/webapp/img/filetypes/iso.png +0 -0
- data/webapp/img/filetypes/jar.png +0 -0
- data/webapp/img/filetypes/java.png +0 -0
- data/webapp/img/filetypes/jpeg.png +0 -0
- data/webapp/img/filetypes/jpg.png +0 -0
- data/webapp/img/filetypes/js.png +0 -0
- data/webapp/img/filetypes/lua.png +0 -0
- data/webapp/img/filetypes/m.png +0 -0
- data/webapp/img/filetypes/mm.png +0 -0
- data/webapp/img/filetypes/mov.png +0 -0
- data/webapp/img/filetypes/mp3.png +0 -0
- data/webapp/img/filetypes/mpg.png +0 -0
- data/webapp/img/filetypes/odc.png +0 -0
- data/webapp/img/filetypes/odf.png +0 -0
- data/webapp/img/filetypes/odg.png +0 -0
- data/webapp/img/filetypes/odi.png +0 -0
- data/webapp/img/filetypes/odp.png +0 -0
- data/webapp/img/filetypes/ods.png +0 -0
- data/webapp/img/filetypes/odt.png +0 -0
- data/webapp/img/filetypes/ogg.png +0 -0
- data/webapp/img/filetypes/pdf.png +0 -0
- data/webapp/img/filetypes/pgp.png +0 -0
- data/webapp/img/filetypes/php.png +0 -0
- data/webapp/img/filetypes/pl.png +0 -0
- data/webapp/img/filetypes/png.png +0 -0
- data/webapp/img/filetypes/ppt.png +0 -0
- data/webapp/img/filetypes/ps.png +0 -0
- data/webapp/img/filetypes/py.png +0 -0
- data/webapp/img/filetypes/ram.png +0 -0
- data/webapp/img/filetypes/rar.png +0 -0
- data/webapp/img/filetypes/rb.png +0 -0
- data/webapp/img/filetypes/rm.png +0 -0
- data/webapp/img/filetypes/rpm.png +0 -0
- data/webapp/img/filetypes/rtf.png +0 -0
- data/webapp/img/filetypes/sig.png +0 -0
- data/webapp/img/filetypes/sql.png +0 -0
- data/webapp/img/filetypes/swf.png +0 -0
- data/webapp/img/filetypes/sxc.png +0 -0
- data/webapp/img/filetypes/sxd.png +0 -0
- data/webapp/img/filetypes/sxi.png +0 -0
- data/webapp/img/filetypes/sxw.png +0 -0
- data/webapp/img/filetypes/tar.png +0 -0
- data/webapp/img/filetypes/tex.png +0 -0
- data/webapp/img/filetypes/tgz.png +0 -0
- data/webapp/img/filetypes/txt.png +0 -0
- data/webapp/img/filetypes/vcf.png +0 -0
- data/webapp/img/filetypes/video.png +0 -0
- data/webapp/img/filetypes/vsd.png +0 -0
- data/webapp/img/filetypes/wav.png +0 -0
- data/webapp/img/filetypes/wma.png +0 -0
- data/webapp/img/filetypes/wmv.png +0 -0
- data/webapp/img/filetypes/xls.png +0 -0
- data/webapp/img/filetypes/xml.png +0 -0
- data/webapp/img/filetypes/xpi.png +0 -0
- data/webapp/img/filetypes/xvid.png +0 -0
- data/webapp/img/filetypes/zip.png +0 -0
- data/webapp/img/ico/arrow-000-small.png +0 -0
- data/webapp/img/ico/arrow-circle.png +0 -0
- data/webapp/img/ico/arrow-switch.png +0 -0
- data/webapp/img/ico/asterisk.png +0 -0
- data/webapp/img/ico/battery.png +0 -0
- data/webapp/img/ico/block-small.png +0 -0
- data/webapp/img/ico/block.png +0 -0
- data/webapp/img/ico/book-open-text.png +0 -0
- data/webapp/img/ico/box.png +0 -0
- data/webapp/img/ico/bug.png +0 -0
- data/webapp/img/ico/chart.png +0 -0
- data/webapp/img/ico/chevron-small-expand.png +0 -0
- data/webapp/img/ico/chevron-small.png +0 -0
- data/webapp/img/ico/clipboard-list.png +0 -0
- data/webapp/img/ico/clipboard-paste-document-text.png +0 -0
- data/webapp/img/ico/clipboard-paste.png +0 -0
- data/webapp/img/ico/clock-select-remain.png +0 -0
- data/webapp/img/ico/clock-select.png +0 -0
- data/webapp/img/ico/construction.png +0 -0
- data/webapp/img/ico/cross-0.png +0 -0
- data/webapp/img/ico/cross-1.png +0 -0
- data/webapp/img/ico/cross.png +0 -0
- data/webapp/img/ico/dashboard.png +0 -0
- data/webapp/img/ico/database.png +0 -0
- data/webapp/img/ico/databases.png +0 -0
- data/webapp/img/ico/disk-black.png +0 -0
- data/webapp/img/ico/document-convert.png +0 -0
- data/webapp/img/ico/document-import.png +0 -0
- data/webapp/img/ico/document-list.png +0 -0
- data/webapp/img/ico/document-text.png +0 -0
- data/webapp/img/ico/download-cloud.png +0 -0
- data/webapp/img/ico/exclamation-button.png +0 -0
- data/webapp/img/ico/eye.png +0 -0
- data/webapp/img/ico/folder-export.png +0 -0
- data/webapp/img/ico/folder-tree.png +0 -0
- data/webapp/img/ico/folder.png +0 -0
- data/webapp/img/ico/funnel-small.png +0 -0
- data/webapp/img/ico/funnel.png +0 -0
- data/webapp/img/ico/gear.png +0 -0
- data/webapp/img/ico/globe-network.png +0 -0
- data/webapp/img/ico/globe.png +0 -0
- data/webapp/img/ico/hammer-screwdriver.png +0 -0
- data/webapp/img/ico/hand.png +0 -0
- data/webapp/img/ico/highlighter-text.png +0 -0
- data/webapp/img/ico/hourglass--exclamation.png +0 -0
- data/webapp/img/ico/hourglass.png +0 -0
- data/webapp/img/ico/inbox-document-text.png +0 -0
- data/webapp/img/ico/information-button.png +0 -0
- data/webapp/img/ico/information-small.png +0 -0
- data/webapp/img/ico/information-white.png +0 -0
- data/webapp/img/ico/information.png +0 -0
- data/webapp/img/ico/jar.png +0 -0
- data/webapp/img/ico/magnifier.png +0 -0
- data/webapp/img/ico/mail.png +0 -0
- data/webapp/img/ico/memory.png +0 -0
- data/webapp/img/ico/molecule.png +0 -0
- data/webapp/img/ico/network-cloud.png +0 -0
- data/webapp/img/ico/network-status-away.png +0 -0
- data/webapp/img/ico/network-status-busy.png +0 -0
- data/webapp/img/ico/network-status-offline.png +0 -0
- data/webapp/img/ico/network-status.png +0 -0
- data/webapp/img/ico/network.png +0 -0
- data/webapp/img/ico/node-design.png +0 -0
- data/webapp/img/ico/node-master.png +0 -0
- data/webapp/img/ico/node-select.png +0 -0
- data/webapp/img/ico/node-slave.png +0 -0
- data/webapp/img/ico/node.png +0 -0
- data/webapp/img/ico/pencil-small.png +0 -0
- data/webapp/img/ico/plus-button.png +0 -0
- data/webapp/img/ico/processor.png +0 -0
- data/webapp/img/ico/prohibition.png +0 -0
- data/webapp/img/ico/property.png +0 -0
- data/webapp/img/ico/question-small-white.png +0 -0
- data/webapp/img/ico/question-white.png +0 -0
- data/webapp/img/ico/question.png +0 -0
- data/webapp/img/ico/receipt-invoice.png +0 -0
- data/webapp/img/ico/receipt.png +0 -0
- data/webapp/img/ico/script-code.png +0 -0
- data/webapp/img/ico/server-cast.png +0 -0
- data/webapp/img/ico/server.png +0 -0
- data/webapp/img/ico/sitemap.png +0 -0
- data/webapp/img/ico/slash.png +0 -0
- data/webapp/img/ico/status-away.png +0 -0
- data/webapp/img/ico/status-busy.png +0 -0
- data/webapp/img/ico/status-offline.png +0 -0
- data/webapp/img/ico/status.png +0 -0
- data/webapp/img/ico/system-monitor--exclamation.png +0 -0
- data/webapp/img/ico/system-monitor.png +0 -0
- data/webapp/img/ico/table.png +0 -0
- data/webapp/img/ico/terminal.png +0 -0
- data/webapp/img/ico/tick-circle.png +0 -0
- data/webapp/img/ico/tick-red.png +0 -0
- data/webapp/img/ico/tick.png +0 -0
- data/webapp/img/ico/toggle-small-expand.png +0 -0
- data/webapp/img/ico/toggle-small.png +0 -0
- data/webapp/img/ico/toolbox.png +0 -0
- data/webapp/img/ico/ui-accordion.png +0 -0
- data/webapp/img/ico/ui-address-bar.png +0 -0
- data/webapp/img/ico/ui-check-box-uncheck.png +0 -0
- data/webapp/img/ico/ui-check-box.png +0 -0
- data/webapp/img/ico/ui-radio-button-uncheck.png +0 -0
- data/webapp/img/ico/ui-radio-button.png +0 -0
- data/webapp/img/ico/ui-text-field-select.png +0 -0
- data/webapp/img/ico/users.png +0 -0
- data/webapp/img/ico/wooden-box.png +0 -0
- data/webapp/img/ico/zone.png +0 -0
- data/webapp/img/loader-light.gif +0 -0
- data/webapp/img/loader.gif +0 -0
- data/webapp/img/lucene-ico.png +0 -0
- data/webapp/img/solr-ico.png +0 -0
- data/webapp/{admin/solr_small.png → img/solr.png} +0 -0
- data/webapp/img/tree.png +0 -0
- data/webapp/js/lib/ZeroClipboard.js +317 -0
- data/webapp/js/lib/chosen.js +953 -0
- data/webapp/{admin/get-properties.jsp → js/lib/console.js} +13 -10
- data/webapp/js/lib/d3.js +9342 -0
- data/webapp/js/lib/highlight.js +1 -0
- data/webapp/{admin/jquery-1.4.3.min.js → js/lib/jquery-1.7.2.min.js} +0 -0
- data/webapp/js/lib/jquery.blockUI.js +499 -0
- data/webapp/js/lib/jquery.cookie.js +47 -0
- data/webapp/js/lib/jquery.form.js +782 -0
- data/webapp/js/lib/jquery.jstree.js +3510 -0
- data/webapp/js/lib/jquery.sammy.js +1856 -0
- data/webapp/js/lib/jquery.sparkline.js +1271 -0
- data/webapp/js/lib/jquery.timeago.js +165 -0
- data/webapp/js/lib/linker.js +48 -0
- data/webapp/js/lib/order.js +189 -0
- data/webapp/js/main.js +57 -0
- data/webapp/js/require.js +11319 -0
- data/webapp/js/scripts/analysis.js +549 -0
- data/webapp/js/scripts/app.js +368 -0
- data/webapp/js/scripts/cloud.js +719 -0
- data/webapp/js/scripts/cores.js +540 -0
- data/webapp/js/scripts/dashboard.js +540 -0
- data/webapp/js/scripts/dataimport.js +567 -0
- data/webapp/js/scripts/file.js +56 -0
- data/webapp/js/scripts/index.js +344 -0
- data/webapp/js/scripts/java-properties.js +107 -0
- data/webapp/js/scripts/logging.js +519 -0
- data/webapp/js/scripts/ping.js +72 -0
- data/webapp/js/scripts/plugins.js +426 -0
- data/webapp/js/scripts/query.js +170 -0
- data/webapp/js/scripts/replication.js +557 -0
- data/webapp/js/scripts/schema-browser.js +1206 -0
- data/webapp/js/scripts/threads.js +159 -0
- data/webapp/tpl/analysis.html +83 -0
- data/webapp/tpl/cloud.html +54 -0
- data/webapp/tpl/cores.html +215 -0
- data/webapp/tpl/dashboard.html +164 -0
- data/webapp/tpl/dataimport.html +123 -0
- data/webapp/tpl/index.html +250 -0
- data/webapp/tpl/logging.html +23 -0
- data/webapp/tpl/plugins.html +39 -0
- data/webapp/tpl/query.html +318 -0
- data/webapp/tpl/replication.html +207 -0
- data/webapp/tpl/schema-browser.html +178 -0
- data/webapp/tpl/threads.html +56 -0
- metadata +307 -40
- data/lib/rjack-solr/solr-core-3.6.2.jar +0 -0
- data/lib/rjack-solr/solr-solrj-3.6.2.jar +0 -0
- data/webapp/admin/_info.jsp +0 -120
- data/webapp/admin/action.jsp +0 -94
- data/webapp/admin/analysis.jsp +0 -496
- data/webapp/admin/analysis.xsl +0 -179
- data/webapp/admin/dataimport.jsp +0 -53
- data/webapp/admin/debug.jsp +0 -103
- data/webapp/admin/distributiondump.jsp +0 -160
- data/webapp/admin/form.jsp +0 -152
- data/webapp/admin/get-file.jsp +0 -72
- data/webapp/admin/header.jsp +0 -44
- data/webapp/admin/index.jsp +0 -162
- data/webapp/admin/meta.xsl +0 -34
- data/webapp/admin/ping.jsp +0 -52
- data/webapp/admin/ping.xsl +0 -71
- data/webapp/admin/raw-schema.jsp +0 -38
- data/webapp/admin/registry.jsp +0 -107
- data/webapp/admin/registry.xsl +0 -321
- data/webapp/admin/replication/header.jsp +0 -89
- data/webapp/admin/replication/index.jsp +0 -378
- data/webapp/admin/schema.jsp +0 -690
- data/webapp/admin/solr-admin.css +0 -215
- data/webapp/admin/stats.jsp +0 -92
- data/webapp/admin/stats.xsl +0 -220
- data/webapp/admin/tabular.xsl +0 -141
- data/webapp/admin/threaddump.jsp +0 -110
- data/webapp/admin/threaddump.xsl +0 -103
- data/webapp/index.jsp +0 -49
data/webapp/admin/ping.jsp
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
<%@ page contentType="text/xml; charset=utf-8" pageEncoding="UTF-8" language="java" %>
|
2
|
-
<%--
|
3
|
-
Licensed to the Apache Software Foundation (ASF) under one or more
|
4
|
-
contributor license agreements. See the NOTICE file distributed with
|
5
|
-
this work for additional information regarding copyright ownership.
|
6
|
-
The ASF licenses this file to You under the Apache License, Version 2.0
|
7
|
-
(the "License"); you may not use this file except in compliance with
|
8
|
-
the License. You may obtain a copy of the License at
|
9
|
-
|
10
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
|
12
|
-
Unless required by applicable law or agreed to in writing, software
|
13
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
See the License for the specific language governing permissions and
|
16
|
-
limitations under the License.
|
17
|
-
--%>
|
18
|
-
<%@ page import="org.apache.solr.core.SolrConfig,
|
19
|
-
org.apache.solr.core.SolrCore,
|
20
|
-
org.apache.solr.common.SolrException"%>
|
21
|
-
<%@ page import="org.apache.solr.request.LocalSolrQueryRequest"%>
|
22
|
-
<%@ page import="org.apache.solr.response.SolrQueryResponse"%>
|
23
|
-
<%@ page import="org.apache.solr.request.ServletSolrParams"%>
|
24
|
-
<%@ page import="org.apache.solr.request.SolrQueryRequest"%>
|
25
|
-
|
26
|
-
<%@include file="_info.jsp" %>
|
27
|
-
<?xml-stylesheet type="text/xsl" href="ping.xsl"?>
|
28
|
-
|
29
|
-
<solr>
|
30
|
-
<core><%=core.getName()%></core>
|
31
|
-
<ping>
|
32
|
-
<%
|
33
|
-
SolrQueryRequest req = core.getPingQueryRequest();
|
34
|
-
SolrQueryResponse resp = new SolrQueryResponse();
|
35
|
-
try {
|
36
|
-
core.execute(req,resp);
|
37
|
-
if (resp.getException() == null) {
|
38
|
-
// No need for explicit status in the body, when the standard HTTP
|
39
|
-
// response codes already transmit success/failure message
|
40
|
-
out.println("<status>200</status>");
|
41
|
-
}
|
42
|
-
else if (resp.getException() != null) {
|
43
|
-
throw resp.getException();
|
44
|
-
}
|
45
|
-
} catch (Throwable t) {
|
46
|
-
throw t;
|
47
|
-
} finally {
|
48
|
-
req.close();
|
49
|
-
}
|
50
|
-
%>
|
51
|
-
</ping>
|
52
|
-
</solr>
|
data/webapp/admin/ping.xsl
DELETED
@@ -1,71 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<!--
|
3
|
-
Licensed to the Apache Software Foundation (ASF) under one or more
|
4
|
-
contributor license agreements. See the NOTICE file distributed with
|
5
|
-
this work for additional information regarding copyright ownership.
|
6
|
-
The ASF licenses this file to You under the Apache License, Version 2.0
|
7
|
-
(the "License"); you may not use this file except in compliance with
|
8
|
-
the License. You may obtain a copy of the License at
|
9
|
-
|
10
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
|
12
|
-
Unless required by applicable law or agreed to in writing, software
|
13
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
See the License for the specific language governing permissions and
|
16
|
-
limitations under the License.
|
17
|
-
-->
|
18
|
-
<!-- $Id$ -->
|
19
|
-
<!-- $URL$ -->
|
20
|
-
|
21
|
-
<xsl:stylesheet
|
22
|
-
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
23
|
-
version="1.0">
|
24
|
-
|
25
|
-
<xsl:output
|
26
|
-
method="html"
|
27
|
-
indent="yes"
|
28
|
-
encoding="utf-8"
|
29
|
-
media-type="text/html"
|
30
|
-
doctype-public="-//W3C//DTD HTML 4.01//EN"
|
31
|
-
doctype-system="http://www.w3.org/TR/html4/strict.dtd" />
|
32
|
-
|
33
|
-
<xsl:template match="/">
|
34
|
-
<html>
|
35
|
-
<head>
|
36
|
-
<link rel="stylesheet" type="text/css" href="solr-admin.css"></link>
|
37
|
-
<link rel="icon" href="favicon.ico" type="image/ico"></link>
|
38
|
-
<link rel="shortcut icon" href="favicon.ico" type="image/ico"></link>
|
39
|
-
<title>Solr Admin: Ping</title>
|
40
|
-
</head>
|
41
|
-
<body>
|
42
|
-
<a href=".">
|
43
|
-
<img border="0" align="right" height="78" width="142" src="solr_small.png" alt="Apache Solr">
|
44
|
-
</img>
|
45
|
-
</a>
|
46
|
-
<h1>Solr Admin (<xsl:value-of select="solr/meta/collection" />)</h1>
|
47
|
-
<div style="margin-top: 1em;">
|
48
|
-
<xsl:apply-templates/>
|
49
|
-
<div>
|
50
|
-
</div>
|
51
|
-
<a href=".">Return to Admin Page</a>
|
52
|
-
</div>
|
53
|
-
</body>
|
54
|
-
</html>
|
55
|
-
</xsl:template>
|
56
|
-
|
57
|
-
<xsl:include href="meta.xsl"/>
|
58
|
-
|
59
|
-
<xsl:template match="solr/ping">
|
60
|
-
<table>
|
61
|
-
<tr>
|
62
|
-
<td>
|
63
|
-
<H3>Ping</H3>
|
64
|
-
</td>
|
65
|
-
<td>
|
66
|
-
<xsl:value-of select="error" />
|
67
|
-
</td>
|
68
|
-
</tr>
|
69
|
-
</table>
|
70
|
-
</xsl:template>
|
71
|
-
</xsl:stylesheet>
|
data/webapp/admin/raw-schema.jsp
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
<%--
|
2
|
-
Licensed to the Apache Software Foundation (ASF) under one or more
|
3
|
-
contributor license agreements. See the NOTICE file distributed with
|
4
|
-
this work for additional information regarding copyright ownership.
|
5
|
-
The ASF licenses this file to You under the Apache License, Version 2.0
|
6
|
-
(the "License"); you may not use this file except in compliance with
|
7
|
-
the License. You may obtain a copy of the License at
|
8
|
-
|
9
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
|
11
|
-
Unless required by applicable law or agreed to in writing, software
|
12
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
See the License for the specific language governing permissions and
|
15
|
-
limitations under the License.
|
16
|
-
--%>
|
17
|
-
<%@ page import="org.apache.solr.core.SolrCore,
|
18
|
-
org.apache.solr.schema.IndexSchema"%>
|
19
|
-
<%@ page import="java.io.InputStreamReader"%>
|
20
|
-
<%@ page import="java.io.Reader"%>
|
21
|
-
<%@ page import="java.util.logging.Logger"%>
|
22
|
-
<%@ page contentType="text/plain;charset=UTF-8" language="java" %>
|
23
|
-
<%@include file="_info.jsp" %>
|
24
|
-
<%!
|
25
|
-
static Logger log = Logger.getLogger(SolrCore.class.getName());
|
26
|
-
%>
|
27
|
-
<%
|
28
|
-
// NOTE -- this file will be removed in a future release
|
29
|
-
log.warning("Using deprecated JSP: " + request.getRequestURL().append("?").append(request.getQueryString()) + " -- check the ShowFileRequestHandler" );
|
30
|
-
|
31
|
-
Reader input = new InputStreamReader(schema.getInputStream());
|
32
|
-
char[] buf = new char[4096];
|
33
|
-
while (true) {
|
34
|
-
int len = input.read(buf);
|
35
|
-
if (len<=0) break;
|
36
|
-
out.write(buf,0,len);
|
37
|
-
}
|
38
|
-
%>
|
data/webapp/admin/registry.jsp
DELETED
@@ -1,107 +0,0 @@
|
|
1
|
-
<%@ page contentType="text/xml; charset=utf-8" pageEncoding="UTF-8" language="java" %>
|
2
|
-
<%--
|
3
|
-
Licensed to the Apache Software Foundation (ASF) under one or more
|
4
|
-
contributor license agreements. See the NOTICE file distributed with
|
5
|
-
this work for additional information regarding copyright ownership.
|
6
|
-
The ASF licenses this file to You under the Apache License, Version 2.0
|
7
|
-
(the "License"); you may not use this file except in compliance with
|
8
|
-
the License. You may obtain a copy of the License at
|
9
|
-
|
10
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
|
12
|
-
Unless required by applicable law or agreed to in writing, software
|
13
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
See the License for the specific language governing permissions and
|
16
|
-
limitations under the License.
|
17
|
-
--%>
|
18
|
-
<%@ page import="org.apache.solr.core.SolrInfoMBean,
|
19
|
-
org.apache.solr.core.SolrInfoRegistry,
|
20
|
-
java.net.URL,
|
21
|
-
java.util.Date,
|
22
|
-
java.util.Map"%>
|
23
|
-
<?xml-stylesheet type="text/xsl" href="registry.xsl"?>
|
24
|
-
|
25
|
-
<%@include file="_info.jsp" %>
|
26
|
-
|
27
|
-
<solr>
|
28
|
-
<core><%= core.getName()%></core>
|
29
|
-
<schema><%= collectionName %></schema>
|
30
|
-
<host><%= hostname %></host>
|
31
|
-
<now><%= new Date().toString() %></now>
|
32
|
-
<start><%= new Date(core.getStartTime()) %></start>
|
33
|
-
<solr-spec-version><%= solrSpecVersion %></solr-spec-version>
|
34
|
-
<solr-impl-version><%= solrImplVersion %></solr-impl-version>
|
35
|
-
<lucene-spec-version><%= luceneSpecVersion %></lucene-spec-version>
|
36
|
-
<lucene-impl-version><%= luceneImplVersion %></lucene-impl-version>
|
37
|
-
<solr-info>
|
38
|
-
<%
|
39
|
-
for (SolrInfoMBean.Category cat : SolrInfoMBean.Category.values()) {
|
40
|
-
%>
|
41
|
-
<<%= cat.toString() %>>
|
42
|
-
<%
|
43
|
-
Map<String, SolrInfoMBean> reg = core.getInfoRegistry();
|
44
|
-
synchronized(reg) {
|
45
|
-
for (Map.Entry<String,SolrInfoMBean> entry : reg.entrySet()) {
|
46
|
-
String key = entry.getKey();
|
47
|
-
SolrInfoMBean m = entry.getValue();
|
48
|
-
|
49
|
-
if (m.getCategory() != cat) continue;
|
50
|
-
|
51
|
-
String na = "None Provided";
|
52
|
-
String name = (m.getName()!=null ? m.getName() : na);
|
53
|
-
String vers = (m.getVersion()!=null ? m.getVersion() : na);
|
54
|
-
String desc = (m.getDescription()!=null ? m.getDescription() : na);
|
55
|
-
String srcId = (m.getSourceId()!=null ? m.getSourceId() : na);
|
56
|
-
String src = (m.getSource()!=null ? m.getSource() : na);
|
57
|
-
// print
|
58
|
-
%>
|
59
|
-
<entry>
|
60
|
-
<name>
|
61
|
-
<%= key %>
|
62
|
-
</name>
|
63
|
-
<class>
|
64
|
-
<%= name %>
|
65
|
-
</class>
|
66
|
-
<version>
|
67
|
-
<%= vers %>
|
68
|
-
</version>
|
69
|
-
<description>
|
70
|
-
<%= desc %>
|
71
|
-
</description>
|
72
|
-
<sourceid>
|
73
|
-
<%= srcId %>
|
74
|
-
</sourceid>
|
75
|
-
<source>
|
76
|
-
<%= src %>
|
77
|
-
</source>
|
78
|
-
|
79
|
-
<%
|
80
|
-
URL[] urls = m.getDocs();
|
81
|
-
if ((urls != null) && (urls.length != 0)) {
|
82
|
-
%>
|
83
|
-
<urls>
|
84
|
-
<%
|
85
|
-
for (URL u : urls) {
|
86
|
-
%>
|
87
|
-
<url>
|
88
|
-
<%= u.toString() %>
|
89
|
-
</url>
|
90
|
-
<%
|
91
|
-
}
|
92
|
-
%>
|
93
|
-
</urls>
|
94
|
-
<%
|
95
|
-
}
|
96
|
-
%>
|
97
|
-
</entry>
|
98
|
-
<%
|
99
|
-
}
|
100
|
-
}
|
101
|
-
%>
|
102
|
-
</<%= cat.toString() %>>
|
103
|
-
<%
|
104
|
-
}
|
105
|
-
%>
|
106
|
-
</solr-info>
|
107
|
-
</solr>
|
data/webapp/admin/registry.xsl
DELETED
@@ -1,321 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<!--
|
3
|
-
Licensed to the Apache Software Foundation (ASF) under one or more
|
4
|
-
contributor license agreements. See the NOTICE file distributed with
|
5
|
-
this work for additional information regarding copyright ownership.
|
6
|
-
The ASF licenses this file to You under the Apache License, Version 2.0
|
7
|
-
(the "License"); you may not use this file except in compliance with
|
8
|
-
the License. You may obtain a copy of the License at
|
9
|
-
|
10
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
|
12
|
-
Unless required by applicable law or agreed to in writing, software
|
13
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
See the License for the specific language governing permissions and
|
16
|
-
limitations under the License.
|
17
|
-
-->
|
18
|
-
<!-- $Id: registry.xsl 1075192 2011-02-28 00:50:09Z uschindler $ -->
|
19
|
-
<!-- $URL: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_3_6/solr/webapp/web/admin/registry.xsl $ -->
|
20
|
-
|
21
|
-
<xsl:stylesheet
|
22
|
-
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
23
|
-
version="1.0">
|
24
|
-
|
25
|
-
|
26
|
-
<xsl:output
|
27
|
-
method="html"
|
28
|
-
encoding="utf-8"
|
29
|
-
media-type="text/html"
|
30
|
-
indent="yes"
|
31
|
-
doctype-public="-//W3C//DTD HTML 4.01//EN"
|
32
|
-
doctype-system="http://www.w3.org/TR/html4/strict.dtd" />
|
33
|
-
|
34
|
-
|
35
|
-
<xsl:template match="/">
|
36
|
-
<html>
|
37
|
-
<head>
|
38
|
-
<link rel="stylesheet" type="text/css" href="solr-admin.css"></link>
|
39
|
-
<link rel="icon" href="favicon.ico" type="image/ico"></link>
|
40
|
-
<link rel="shortcut icon" href="favicon.ico" type="image/ico"></link>
|
41
|
-
<title>Solr Info</title>
|
42
|
-
</head>
|
43
|
-
<body>
|
44
|
-
<a href=".">
|
45
|
-
<img border="0" align="right" height="78" width="142" src="solr_small.png" alt="Apache Solr">
|
46
|
-
</img>
|
47
|
-
</a>
|
48
|
-
<h1>Solr Info (<xsl:value-of select="solr/schema" />)</h1>
|
49
|
-
<xsl:value-of select="solr/host" />
|
50
|
-
<br clear="all" />
|
51
|
-
<xsl:apply-templates/>
|
52
|
-
<br /><br />
|
53
|
-
<a href=".">Return to Admin Page</a>
|
54
|
-
</body>
|
55
|
-
</html>
|
56
|
-
</xsl:template>
|
57
|
-
|
58
|
-
<xsl:template match="solr">
|
59
|
-
<table>
|
60
|
-
<tr>
|
61
|
-
<td>
|
62
|
-
<H3>Category</H3>
|
63
|
-
</td>
|
64
|
-
<td>
|
65
|
-
[<a href="#core">Core</a>]
|
66
|
-
[<a href="#cache">Cache</a>]
|
67
|
-
[<a href="#query">Query</a>]
|
68
|
-
[<a href="#update">Update</a>]
|
69
|
-
[<a href="#highlighting">Highlighting</a>]
|
70
|
-
[<a href="#other">Other</a>]
|
71
|
-
</td>
|
72
|
-
</tr>
|
73
|
-
<tr><td></td>
|
74
|
-
<td>Solr Specification Version:
|
75
|
-
<xsl:value-of select="solr-spec-version" />
|
76
|
-
</td>
|
77
|
-
</tr>
|
78
|
-
<tr><td></td>
|
79
|
-
<td>Solr Implementation Version:
|
80
|
-
<xsl:value-of select="solr-impl-version" />
|
81
|
-
</td>
|
82
|
-
</tr>
|
83
|
-
<tr><td></td>
|
84
|
-
<td>Lucene Specification Version:
|
85
|
-
<xsl:value-of select="lucene-spec-version" />
|
86
|
-
</td>
|
87
|
-
</tr>
|
88
|
-
<tr><td></td>
|
89
|
-
<td>Lucene Implementation Version:
|
90
|
-
<xsl:value-of select="lucene-impl-version" />
|
91
|
-
</td>
|
92
|
-
</tr>
|
93
|
-
<tr>
|
94
|
-
<td>
|
95
|
-
</td>
|
96
|
-
<td>
|
97
|
-
Current Time: <xsl:value-of select="now" />
|
98
|
-
</td>
|
99
|
-
</tr>
|
100
|
-
<tr>
|
101
|
-
<td>
|
102
|
-
</td>
|
103
|
-
<td>
|
104
|
-
Server Start Time:<xsl:value-of select="start" />
|
105
|
-
</td>
|
106
|
-
</tr>
|
107
|
-
</table>
|
108
|
-
<xsl:apply-templates/>
|
109
|
-
</xsl:template>
|
110
|
-
|
111
|
-
<xsl:template match="solr/*" priority="-1" />
|
112
|
-
|
113
|
-
<xsl:template match="solr/solr-info">
|
114
|
-
<xsl:apply-templates/>
|
115
|
-
</xsl:template>
|
116
|
-
|
117
|
-
<xsl:template match="solr/solr-info/CORE">
|
118
|
-
<br />
|
119
|
-
<a name="core"><h2>Core</h2></a>
|
120
|
-
<table>
|
121
|
-
<tr>
|
122
|
-
<td align="right">
|
123
|
-
 
|
124
|
-
</td>
|
125
|
-
<td>
|
126
|
-
</td>
|
127
|
-
</tr>
|
128
|
-
<xsl:apply-templates/>
|
129
|
-
</table>
|
130
|
-
</xsl:template>
|
131
|
-
|
132
|
-
<xsl:template match="solr/solr-info/CORE/entry">
|
133
|
-
<xsl:for-each select="*">
|
134
|
-
<tr>
|
135
|
-
<td align="right">
|
136
|
-
<strong><xsl:value-of select="name()"/>: </strong>
|
137
|
-
</td>
|
138
|
-
<td>
|
139
|
-
<tt><xsl:value-of select="."/> </tt>
|
140
|
-
</td>
|
141
|
-
</tr>
|
142
|
-
</xsl:for-each>
|
143
|
-
<tr>
|
144
|
-
<td align="right">
|
145
|
-
</td>
|
146
|
-
<td>
|
147
|
-
</td>
|
148
|
-
</tr>
|
149
|
-
</xsl:template>
|
150
|
-
|
151
|
-
<xsl:template match="solr/solr-info/CACHE">
|
152
|
-
<br />
|
153
|
-
<a name="cache"><h2>Cache</h2></a>
|
154
|
-
<table>
|
155
|
-
<tr>
|
156
|
-
<td align="right">
|
157
|
-
 
|
158
|
-
</td>
|
159
|
-
<td>
|
160
|
-
</td>
|
161
|
-
</tr>
|
162
|
-
<xsl:apply-templates/>
|
163
|
-
</table>
|
164
|
-
</xsl:template>
|
165
|
-
|
166
|
-
<xsl:template match="solr/solr-info/CACHE/entry">
|
167
|
-
<xsl:for-each select="*">
|
168
|
-
<tr>
|
169
|
-
<td align="right">
|
170
|
-
<strong><xsl:value-of select="name()"/>: </strong>
|
171
|
-
</td>
|
172
|
-
<td>
|
173
|
-
<tt><xsl:value-of select="."/> </tt>
|
174
|
-
</td>
|
175
|
-
</tr>
|
176
|
-
</xsl:for-each>
|
177
|
-
<tr>
|
178
|
-
<td align="right">
|
179
|
-
</td>
|
180
|
-
<td>
|
181
|
-
</td>
|
182
|
-
</tr>
|
183
|
-
</xsl:template>
|
184
|
-
|
185
|
-
<xsl:template match="solr/solr-info/QUERYHANDLER">
|
186
|
-
<br />
|
187
|
-
<a name="query"><h2>Query Handlers</h2></a>
|
188
|
-
<table>
|
189
|
-
<tr>
|
190
|
-
<td align="right">
|
191
|
-
 
|
192
|
-
</td>
|
193
|
-
<td>
|
194
|
-
</td>
|
195
|
-
</tr>
|
196
|
-
<xsl:apply-templates/>
|
197
|
-
</table>
|
198
|
-
</xsl:template>
|
199
|
-
|
200
|
-
<xsl:template match="solr/solr-info/QUERYHANDLER/entry">
|
201
|
-
<xsl:for-each select="*">
|
202
|
-
<tr>
|
203
|
-
<td align="right">
|
204
|
-
<strong><xsl:value-of select="name()"/>: </strong>
|
205
|
-
</td>
|
206
|
-
<td>
|
207
|
-
<tt><xsl:value-of select="."/> </tt>
|
208
|
-
</td>
|
209
|
-
</tr>
|
210
|
-
</xsl:for-each>
|
211
|
-
<tr>
|
212
|
-
<td align="right">
|
213
|
-
</td>
|
214
|
-
<td>
|
215
|
-
</td>
|
216
|
-
</tr>
|
217
|
-
</xsl:template>
|
218
|
-
|
219
|
-
<xsl:template match="solr/solr-info/UPDATEHANDLER">
|
220
|
-
<br />
|
221
|
-
<a name="update"><h2>Update Handlers</h2></a>
|
222
|
-
<table>
|
223
|
-
<tr>
|
224
|
-
<td align="right">
|
225
|
-
 
|
226
|
-
</td>
|
227
|
-
<td>
|
228
|
-
</td>
|
229
|
-
</tr>
|
230
|
-
<xsl:apply-templates/>
|
231
|
-
</table>
|
232
|
-
</xsl:template>
|
233
|
-
|
234
|
-
<xsl:template match="solr/solr-info/UPDATEHANDLER/entry">
|
235
|
-
<xsl:for-each select="*">
|
236
|
-
<tr>
|
237
|
-
<td align="right">
|
238
|
-
<strong><xsl:value-of select="name()"/>: </strong>
|
239
|
-
</td>
|
240
|
-
<td>
|
241
|
-
<tt><xsl:value-of select="."/> </tt>
|
242
|
-
</td>
|
243
|
-
</tr>
|
244
|
-
</xsl:for-each>
|
245
|
-
<tr>
|
246
|
-
<td align="right">
|
247
|
-
</td>
|
248
|
-
<td>
|
249
|
-
</td>
|
250
|
-
</tr>
|
251
|
-
</xsl:template>
|
252
|
-
<xsl:template match="solr/solr-info/HIGHLIGHTING">
|
253
|
-
<br />
|
254
|
-
<a name="highlighting"><h2>Highlighting</h2></a>
|
255
|
-
<table>
|
256
|
-
<tr>
|
257
|
-
<td align="right">
|
258
|
-
 
|
259
|
-
</td>
|
260
|
-
<td>
|
261
|
-
</td>
|
262
|
-
</tr>
|
263
|
-
<xsl:apply-templates/>
|
264
|
-
</table>
|
265
|
-
</xsl:template>
|
266
|
-
<xsl:template match="solr/solr-info/HIGHLIGHTING/entry">
|
267
|
-
<xsl:for-each select="*">
|
268
|
-
<tr>
|
269
|
-
<td align="right">
|
270
|
-
<strong><xsl:value-of select="name()"/>: </strong>
|
271
|
-
</td>
|
272
|
-
<td>
|
273
|
-
<tt><xsl:value-of select="."/> </tt>
|
274
|
-
</td>
|
275
|
-
</tr>
|
276
|
-
</xsl:for-each>
|
277
|
-
<tr>
|
278
|
-
<td align="right">
|
279
|
-
</td>
|
280
|
-
<td>
|
281
|
-
</td>
|
282
|
-
</tr>
|
283
|
-
</xsl:template>
|
284
|
-
|
285
|
-
|
286
|
-
<xsl:template match="solr/solr-info/OTHER">
|
287
|
-
<br />
|
288
|
-
<a name="other"><h2>Other</h2></a>
|
289
|
-
<table>
|
290
|
-
<tr>
|
291
|
-
<td align="right">
|
292
|
-
 
|
293
|
-
</td>
|
294
|
-
<td>
|
295
|
-
</td>
|
296
|
-
</tr>
|
297
|
-
<xsl:apply-templates/>
|
298
|
-
</table>
|
299
|
-
</xsl:template>
|
300
|
-
|
301
|
-
<xsl:template match="solr/solr-info/OTHER/entry">
|
302
|
-
<xsl:for-each select="*">
|
303
|
-
<tr>
|
304
|
-
<td align="right">
|
305
|
-
<strong><xsl:value-of select="name()"/>: </strong>
|
306
|
-
</td>
|
307
|
-
<td>
|
308
|
-
<tt><xsl:value-of select="."/> </tt>
|
309
|
-
</td>
|
310
|
-
</tr>
|
311
|
-
</xsl:for-each>
|
312
|
-
<tr>
|
313
|
-
<td align="right">
|
314
|
-
</td>
|
315
|
-
<td>
|
316
|
-
</td>
|
317
|
-
</tr>
|
318
|
-
</xsl:template>
|
319
|
-
|
320
|
-
|
321
|
-
</xsl:stylesheet>
|