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/analysis.xsl
DELETED
@@ -1,179 +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 Info</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
|
-
</a>
|
45
|
-
<h1>Solr Admin (<xsl:value-of select="solr/meta/collection" />)</h1>
|
46
|
-
<div style="margin-top: 1em;">
|
47
|
-
<h2>Field Analysis</h2>
|
48
|
-
<xsl:apply-templates/>
|
49
|
-
<a href=".">Return to Admin Page</a>
|
50
|
-
</div>
|
51
|
-
</body>
|
52
|
-
</html>
|
53
|
-
</xsl:template>
|
54
|
-
|
55
|
-
<xsl:include href="meta.xsl"/>
|
56
|
-
|
57
|
-
<xsl:template match="solr/analysis/form">
|
58
|
-
<form method="POST" action="analysis.jsp">
|
59
|
-
<table>
|
60
|
-
<tr>
|
61
|
-
<td>
|
62
|
-
<strong>Field name</strong>
|
63
|
-
</td>
|
64
|
-
<td>
|
65
|
-
<input class="std" name="name" type="text" value="{field}"/>
|
66
|
-
</td>
|
67
|
-
</tr>
|
68
|
-
<tr>
|
69
|
-
<td>
|
70
|
-
<strong>Field value (Index)</strong>
|
71
|
-
<br/>
|
72
|
-
verbose output <input name="verbose" type="checkbox" checked="true"/>
|
73
|
-
<br/>
|
74
|
-
highlight matches <input name="highlight" type="checkbox" checked="true"/>
|
75
|
-
</td>
|
76
|
-
<td>
|
77
|
-
<textarea class="std" rows="8" cols="70" name="val"><xsl:value-of select="fieldIndexValue" /></textarea>
|
78
|
-
</td>
|
79
|
-
</tr>
|
80
|
-
<tr>
|
81
|
-
<td>
|
82
|
-
<strong>Field value (Query)</strong>
|
83
|
-
<br/>
|
84
|
-
verbose output <input name="qverbose" type="checkbox" checked="true"/>
|
85
|
-
</td>
|
86
|
-
<td>
|
87
|
-
<textarea class="std" rows="1" cols="70" name="qval"><xsl:value-of select="fieldQueryValue" /></textarea>
|
88
|
-
</td>
|
89
|
-
</tr>
|
90
|
-
<tr>
|
91
|
-
<td>
|
92
|
-
</td>
|
93
|
-
<td>
|
94
|
-
<input class="stdbutton" type="submit" value="analyze"/>
|
95
|
-
</td>
|
96
|
-
</tr>
|
97
|
-
</table>
|
98
|
-
</form>
|
99
|
-
</xsl:template>
|
100
|
-
|
101
|
-
<xsl:template match="solr/analysis/results/indexAnalyzer">
|
102
|
-
<h4>Index Analyzer</h4>
|
103
|
-
<xsl:for-each select="factory">
|
104
|
-
<h5 style="margin-left: 1em;"><xsl:apply-templates select="@class"/></h5>
|
105
|
-
<xsl:apply-templates/>
|
106
|
-
</xsl:for-each>
|
107
|
-
</xsl:template>
|
108
|
-
|
109
|
-
<xsl:template match="solr/analysis/results/indexAnalyzer/factory/args">
|
110
|
-
<div style="margin-left: 2em; font-weight: bold;">{
|
111
|
-
<xsl:for-each select="arg">
|
112
|
-
<xsl:apply-templates select="@name"/>=<xsl:value-of select="."/>,
|
113
|
-
</xsl:for-each>
|
114
|
-
}</div>
|
115
|
-
</xsl:template>
|
116
|
-
|
117
|
-
<xsl:template match="solr/analysis/results/indexAnalyzer/factory/tokens">
|
118
|
-
<div style="margin-left: 2em;">
|
119
|
-
<table width="auto" class="analysis" border="1">
|
120
|
-
<tr>
|
121
|
-
<th>text</th>
|
122
|
-
<th>type</th>
|
123
|
-
<th>position</th>
|
124
|
-
<th>start</th>
|
125
|
-
<th>end</th>
|
126
|
-
</tr>
|
127
|
-
<xsl:for-each select="token">
|
128
|
-
<tr>
|
129
|
-
<td><xsl:value-of select="."/></td>
|
130
|
-
<td><xsl:apply-templates select="@type"/></td>
|
131
|
-
<td><xsl:apply-templates select="@pos"/></td>
|
132
|
-
<td><xsl:apply-templates select="@start"/></td>
|
133
|
-
<td><xsl:apply-templates select="@end"/></td>
|
134
|
-
</tr>
|
135
|
-
</xsl:for-each>
|
136
|
-
</table>
|
137
|
-
</div>
|
138
|
-
</xsl:template>
|
139
|
-
|
140
|
-
<xsl:template match="solr/analysis/results/queryAnalyzer">
|
141
|
-
<h4>Query Analyzer</h4>
|
142
|
-
<xsl:for-each select="factory">
|
143
|
-
<h5 style="margin-left: 1em;"><xsl:apply-templates select="@class"/></h5>
|
144
|
-
<xsl:apply-templates/>
|
145
|
-
</xsl:for-each>
|
146
|
-
</xsl:template>
|
147
|
-
|
148
|
-
<xsl:template match="solr/analysis/results/queryAnalyzer/factory/args">
|
149
|
-
<div style="margin-left: 2em; font-weight: bold;">{
|
150
|
-
<xsl:for-each select="arg">
|
151
|
-
<xsl:apply-templates select="@name"/>=<xsl:value-of select="."/>,
|
152
|
-
</xsl:for-each>
|
153
|
-
}</div>
|
154
|
-
</xsl:template>
|
155
|
-
|
156
|
-
<xsl:template match="solr/analysis/results/queryAnalyzer/factory/tokens">
|
157
|
-
<div style="margin-left: 2em;">
|
158
|
-
<table width="auto" class="analysis" border="1">
|
159
|
-
<tr>
|
160
|
-
<th>text</th>
|
161
|
-
<th>type</th>
|
162
|
-
<th>position</th>
|
163
|
-
<th>start</th>
|
164
|
-
<th>end</th>
|
165
|
-
</tr>
|
166
|
-
<xsl:for-each select="token">
|
167
|
-
<tr>
|
168
|
-
<td><xsl:value-of select="."/></td>
|
169
|
-
<td><xsl:apply-templates select="@type"/></td>
|
170
|
-
<td><xsl:apply-templates select="@pos"/></td>
|
171
|
-
<td><xsl:apply-templates select="@start"/></td>
|
172
|
-
<td><xsl:apply-templates select="@end"/></td>
|
173
|
-
</tr>
|
174
|
-
</xsl:for-each>
|
175
|
-
</table>
|
176
|
-
</div>
|
177
|
-
</xsl:template>
|
178
|
-
|
179
|
-
</xsl:stylesheet>
|
data/webapp/admin/dataimport.jsp
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
<%@ page import="org.apache.solr.request.SolrRequestHandler" %>
|
2
|
-
<%@ page import="java.util.Map" %>
|
3
|
-
<%@ page contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
|
4
|
-
<%--
|
5
|
-
Licensed to the Apache Software Foundation (ASF) under one or more
|
6
|
-
contributor license agreements. See the NOTICE file distributed with
|
7
|
-
this work for additional information regarding copyright ownership.
|
8
|
-
The ASF licenses this file to You under the Apache License, Version 2.0
|
9
|
-
(the "License"); you may not use this file except in compliance with
|
10
|
-
the License. You may obtain a copy of the License at
|
11
|
-
|
12
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
13
|
-
|
14
|
-
Unless required by applicable law or agreed to in writing, software
|
15
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
-
See the License for the specific language governing permissions and
|
18
|
-
limitations under the License.
|
19
|
-
--%>
|
20
|
-
<%-- do a verbatim include so we can use the local vars --%>
|
21
|
-
<%@include file="_info.jsp"%>
|
22
|
-
<html>
|
23
|
-
<%
|
24
|
-
String handler = request.getParameter("handler");
|
25
|
-
|
26
|
-
if (handler == null) {
|
27
|
-
Map<String, SolrRequestHandler> handlers = core.getRequestHandlers();
|
28
|
-
%>
|
29
|
-
<head>
|
30
|
-
<title>DataImportHandler Interactive Development</title>
|
31
|
-
<link rel="stylesheet" type="text/css" href="solr-admin.css">
|
32
|
-
</head>
|
33
|
-
<body>
|
34
|
-
Select handler:
|
35
|
-
<ul>
|
36
|
-
<%
|
37
|
-
for (String key : handlers.keySet()) {
|
38
|
-
if (handlers.get(key).getClass().getName().equals("org.apache.solr.handler.dataimport.DataImportHandler")) { %>
|
39
|
-
<li><a href="dataimport.jsp?handler=<%=key%>"><%=key%></a></li>
|
40
|
-
<%
|
41
|
-
}
|
42
|
-
}
|
43
|
-
%>
|
44
|
-
</ul>
|
45
|
-
</body>
|
46
|
-
<% } else { %>
|
47
|
-
|
48
|
-
<frameset cols = "50%, 50%">
|
49
|
-
<frame src ="debug.jsp?handler=<%=handler%>" />
|
50
|
-
<frame src ="..<%=handler%>?command=status" name="result"/>
|
51
|
-
</frameset>
|
52
|
-
<% } %>
|
53
|
-
</html>
|
data/webapp/admin/debug.jsp
DELETED
@@ -1,103 +0,0 @@
|
|
1
|
-
<%@ page contentType="text/html; charset=utf-8" pageEncoding="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
|
-
<%-- do a verbatim include so we can use the local vars --%>
|
19
|
-
<%@include file="_info.jsp"%>
|
20
|
-
<html>
|
21
|
-
<head>
|
22
|
-
<title>DataImportHandler Interactive Development</title>
|
23
|
-
<link rel="stylesheet" type="text/css" href="solr-admin.css"/>
|
24
|
-
<link rel="icon" href="favicon.ico" type="image/ico"/>
|
25
|
-
<link rel="shortcut icon" href="favicon.ico" type="image/ico"/>
|
26
|
-
<script src="jquery-1.4.3.min.js"></script>
|
27
|
-
</head>
|
28
|
-
<body>
|
29
|
-
<h1>DataImportHandler Development Console</h1>
|
30
|
-
<%
|
31
|
-
String handler = request.getParameter("handler"); // must be specified
|
32
|
-
%>
|
33
|
-
<form action="..<%=handler%>" target="result" method="get">
|
34
|
-
<input type="hidden" name="debug" value="on"/>
|
35
|
-
<table>
|
36
|
-
<tr>
|
37
|
-
<th>Handler: </th>
|
38
|
-
<td><%=handler%> <a href="dataimport.jsp" target="_top">change handler</a></td>
|
39
|
-
</tr>
|
40
|
-
<tr>
|
41
|
-
<td colspan="2">
|
42
|
-
<table width="100%">
|
43
|
-
<tr>
|
44
|
-
<td>
|
45
|
-
<select name="command">
|
46
|
-
<option value="full-import" selected="selected">full-import</option>
|
47
|
-
<option value="delta-import">delta-import</option>
|
48
|
-
</select>
|
49
|
-
</td>
|
50
|
-
<td><strong>Verbose</strong> <input
|
51
|
-
name="verbose" type="checkbox"></td>
|
52
|
-
<td><strong>Commit</strong> <input
|
53
|
-
name="commit" type="checkbox"></td>
|
54
|
-
<td><strong>Clean</strong> <input
|
55
|
-
name="clean" type="checkbox"></td>
|
56
|
-
<td><strong>Start Row</strong> <input
|
57
|
-
name="start" size="4" type="text" value="0"></td>
|
58
|
-
<td><strong>No. of Rows</strong> <input name="rows"
|
59
|
-
type="text" size="4" value="10"></td>
|
60
|
-
</tr>
|
61
|
-
</table>
|
62
|
-
</td>
|
63
|
-
<tr>
|
64
|
-
<td><strong>data config xml</strong></td>
|
65
|
-
<td><input class="stdbutton" type="submit" value="debug now">
|
66
|
-
</td>
|
67
|
-
</tr>
|
68
|
-
<tr>
|
69
|
-
<td colspan="2"><textarea id="txtDataConfig" rows="30" cols="80" name="dataConfig"></textarea></td>
|
70
|
-
<script type="text/javascript" language="javascript">
|
71
|
-
$.get("..<%=handler%>?command=show-config", function(data){
|
72
|
-
$('#txtDataConfig').attr('value', data);
|
73
|
-
});
|
74
|
-
</script>
|
75
|
-
</tr>
|
76
|
-
</table>
|
77
|
-
</form>
|
78
|
-
<form action="..<%=handler%>" target="result" method="get">
|
79
|
-
<input type="hidden" name="clean" value="false">
|
80
|
-
<input type="hidden" name="commit" value="true">
|
81
|
-
<input class="stdbutton" type="submit" name="command" value="full-import">
|
82
|
-
<input class="stdbutton" type="submit" name="command" value="delta-import">
|
83
|
-
<input class="stdbutton" type="submit" name="command" value="status">
|
84
|
-
<input class="stdbutton" type="submit" name="command" value="reload-config">
|
85
|
-
<input class="stdbutton" type="submit" name="command" value="abort">
|
86
|
-
</form>
|
87
|
-
<form action="../select" target="result" method="get">
|
88
|
-
<input type="hidden" name="q" value="*:*">
|
89
|
-
<input type="hidden" name="start" value="0">
|
90
|
-
<input type="hidden" name="rows" value="0">
|
91
|
-
<input class="stdbutton" type="submit" value="Documents Count">
|
92
|
-
</form>
|
93
|
-
<form action="..<%=handler%>" target="result" method="get">
|
94
|
-
<input type="hidden" name="verbose" value="true">
|
95
|
-
<input type="hidden" name="clean" value="true">
|
96
|
-
<input type="hidden" name="commit" value="true">
|
97
|
-
<input type="hidden" name="command" value="full-import">
|
98
|
-
<input class="stdbutton" type="submit" value="Full Import with Cleaning">
|
99
|
-
</form>
|
100
|
-
|
101
|
-
<a href="index.jsp" target="_parent">Return to Admin Page</a>
|
102
|
-
</body>
|
103
|
-
</html>
|
@@ -1,160 +0,0 @@
|
|
1
|
-
<%@ page contentType="text/html; charset=utf-8" pageEncoding="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
|
-
|
19
|
-
<%@ page import="org.apache.solr.core.SolrCore,
|
20
|
-
org.apache.solr.schema.IndexSchema,
|
21
|
-
java.io.BufferedReader,
|
22
|
-
java.io.File,
|
23
|
-
java.io.FilenameFilter,
|
24
|
-
java.io.FileReader,
|
25
|
-
java.net.InetAddress,
|
26
|
-
java.net.UnknownHostException,
|
27
|
-
java.util.Date"%>
|
28
|
-
|
29
|
-
<%@include file="header.jsp" %>
|
30
|
-
|
31
|
-
<%
|
32
|
-
File slaveinfo = new File(solrHome + "logs/snappuller.status");
|
33
|
-
|
34
|
-
StringBuffer buffer = new StringBuffer();
|
35
|
-
StringBuffer buffer2 = new StringBuffer();
|
36
|
-
String mode = "";
|
37
|
-
|
38
|
-
if (slaveinfo.canRead()) {
|
39
|
-
// Slave instance
|
40
|
-
mode = "Slave";
|
41
|
-
File slavevers = new File(solrHome + "logs/snapshot.current");
|
42
|
-
BufferedReader inforeader = new BufferedReader(new FileReader(slaveinfo));
|
43
|
-
BufferedReader versreader = new BufferedReader(new FileReader(slavevers));
|
44
|
-
buffer.append("<tr>\n" +
|
45
|
-
"<td>\n" +
|
46
|
-
"Version:" +
|
47
|
-
"</td>\n" +
|
48
|
-
"<td>\n")
|
49
|
-
.append( versreader.readLine())
|
50
|
-
.append( "<td>\n" +
|
51
|
-
"</td>\n" +
|
52
|
-
"</tr>\n" +
|
53
|
-
"<tr>\n" +
|
54
|
-
"<td>\n" +
|
55
|
-
"Status:" +
|
56
|
-
"</td>\n" +
|
57
|
-
"<td>\n")
|
58
|
-
.append( inforeader.readLine())
|
59
|
-
.append( "</td>\n" +
|
60
|
-
"</tr>\n");
|
61
|
-
} else {
|
62
|
-
// Master instance
|
63
|
-
mode = "Master";
|
64
|
-
File masterdir = new File(solrHome + "logs/clients");
|
65
|
-
FilenameFilter sfilter = new FilenameFilter() {
|
66
|
-
public boolean accept(File dir, String name) {
|
67
|
-
return name.startsWith("snapshot.status");
|
68
|
-
}
|
69
|
-
};
|
70
|
-
FilenameFilter cfilter = new FilenameFilter() {
|
71
|
-
public boolean accept(File dir, String name) {
|
72
|
-
return name.startsWith("snapshot.current");
|
73
|
-
}
|
74
|
-
};
|
75
|
-
File[] clients = masterdir.listFiles(cfilter);
|
76
|
-
if (clients == null) {
|
77
|
-
buffer.append("<tr>\n" +
|
78
|
-
"<td>\n" +
|
79
|
-
"</td>\n" +
|
80
|
-
"<td>\n" +
|
81
|
-
"No distribution info present" +
|
82
|
-
"</td>\n" +
|
83
|
-
"</tr>\n");
|
84
|
-
} else {
|
85
|
-
buffer.append("<h4>Client Snapshot In Use:</h4>\n" +
|
86
|
-
"<tr>\n" +
|
87
|
-
"<th>\n" +
|
88
|
-
"Client" +
|
89
|
-
"</th>\n" +
|
90
|
-
"<th>\n" +
|
91
|
-
"Version" +
|
92
|
-
"</th>\n" +
|
93
|
-
"</tr>\n");
|
94
|
-
int i = 0;
|
95
|
-
while (i < clients.length) {
|
96
|
-
String fileName=clients[i].toString();
|
97
|
-
int p=fileName.indexOf("snapshot.current");
|
98
|
-
String clientName=fileName.substring(p+17);
|
99
|
-
BufferedReader reader = new BufferedReader(new FileReader(clients[i]));
|
100
|
-
buffer.append("<tr>\n" +
|
101
|
-
"<td>\n" +
|
102
|
-
clientName +
|
103
|
-
"</td>\n" +
|
104
|
-
"<td>\n")
|
105
|
-
.append( reader.readLine())
|
106
|
-
.append( "</td>\n" +
|
107
|
-
"</tr>\n" +
|
108
|
-
"<tr>\n" +
|
109
|
-
"</tr>\n");
|
110
|
-
i++;
|
111
|
-
}
|
112
|
-
clients = masterdir.listFiles(sfilter);
|
113
|
-
if (clients!=null) {
|
114
|
-
buffer.append("</table>\n" +
|
115
|
-
"<h4>Client Snapshot Distribution Status:</h4>\n" +
|
116
|
-
"<table>\n" +
|
117
|
-
"<tr>\n" +
|
118
|
-
"<th>\n" +
|
119
|
-
"Client" +
|
120
|
-
"</th>\n" +
|
121
|
-
"<th>\n" +
|
122
|
-
"Status" +
|
123
|
-
"</th>\n" +
|
124
|
-
"</tr>\n");
|
125
|
-
i = 0;
|
126
|
-
while (i < clients.length) {
|
127
|
-
String fileName=clients[i].toString();
|
128
|
-
int p=fileName.indexOf("snapshot.status");
|
129
|
-
String clientName=fileName.substring(p+16);
|
130
|
-
BufferedReader reader = new BufferedReader(new FileReader(clients[i]));
|
131
|
-
buffer.append("<tr>\n" +
|
132
|
-
"<td>\n" +
|
133
|
-
clientName +
|
134
|
-
"</td>\n" +
|
135
|
-
"<td>\n")
|
136
|
-
.append( reader.readLine())
|
137
|
-
.append( "</td>\n" +
|
138
|
-
"</tr>\n" +
|
139
|
-
"<tr>\n" +
|
140
|
-
"</tr>\n");
|
141
|
-
i++;
|
142
|
-
}
|
143
|
-
}
|
144
|
-
}
|
145
|
-
}
|
146
|
-
%>
|
147
|
-
|
148
|
-
|
149
|
-
<br clear="all">
|
150
|
-
<h2>Distribution Info: <%= mode %> Server</h2>
|
151
|
-
<br clear="all" />
|
152
|
-
(<a href="http://wiki.apache.org/solr/CollectionDistribution">What Is This Page?</a>)
|
153
|
-
<br clear="all" />
|
154
|
-
<table>
|
155
|
-
<%= buffer %>
|
156
|
-
</table>
|
157
|
-
<br><br>
|
158
|
-
<a href=".">Return to Admin Page</a>
|
159
|
-
</body>
|
160
|
-
</html>
|