tanning_bed_solr 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. data/.bnsignore +18 -0
  2. data/.gitignore +9 -0
  3. data/History.txt +4 -0
  4. data/README.txt +45 -0
  5. data/Rakefile +18 -0
  6. data/lib/tanning_bed_solr.rb +65 -0
  7. data/vendor/solr/README.txt +42 -0
  8. data/vendor/solr/etc/jetty.xml +212 -0
  9. data/vendor/solr/etc/webdefault.xml +379 -0
  10. data/vendor/solr/example-DIH/README.txt +43 -0
  11. data/vendor/solr/example-DIH/hsqldb/ex.backup +0 -0
  12. data/vendor/solr/example-DIH/hsqldb/ex.data +0 -0
  13. data/vendor/solr/example-DIH/hsqldb/ex.log +2 -0
  14. data/vendor/solr/example-DIH/hsqldb/ex.properties +17 -0
  15. data/vendor/solr/example-DIH/hsqldb/ex.script +12 -0
  16. data/vendor/solr/example-DIH/solr/db/conf/admin-extra.html +31 -0
  17. data/vendor/solr/example-DIH/solr/db/conf/db-data-config.xml +31 -0
  18. data/vendor/solr/example-DIH/solr/db/conf/elevate.xml +36 -0
  19. data/vendor/solr/example-DIH/solr/db/conf/protwords.txt +21 -0
  20. data/vendor/solr/example-DIH/solr/db/conf/schema.xml +356 -0
  21. data/vendor/solr/example-DIH/solr/db/conf/scripts.conf +24 -0
  22. data/vendor/solr/example-DIH/solr/db/conf/solrconfig.xml +705 -0
  23. data/vendor/solr/example-DIH/solr/db/conf/stopwords.txt +58 -0
  24. data/vendor/solr/example-DIH/solr/db/conf/synonyms.txt +31 -0
  25. data/vendor/solr/example-DIH/solr/db/conf/xslt/example.xsl +132 -0
  26. data/vendor/solr/example-DIH/solr/db/conf/xslt/example_atom.xsl +63 -0
  27. data/vendor/solr/example-DIH/solr/db/conf/xslt/example_rss.xsl +62 -0
  28. data/vendor/solr/example-DIH/solr/db/conf/xslt/luke.xsl +345 -0
  29. data/vendor/solr/example-DIH/solr/db/lib/hsqldb-1.8.0.10.jar +0 -0
  30. data/vendor/solr/example-DIH/solr/mail/conf/data-config.xml +11 -0
  31. data/vendor/solr/example-DIH/solr/mail/conf/protwords.txt +21 -0
  32. data/vendor/solr/example-DIH/solr/mail/conf/schema.xml +370 -0
  33. data/vendor/solr/example-DIH/solr/mail/conf/solrconfig.xml +807 -0
  34. data/vendor/solr/example-DIH/solr/mail/conf/stopwords.txt +58 -0
  35. data/vendor/solr/example-DIH/solr/mail/conf/synonyms.txt +31 -0
  36. data/vendor/solr/example-DIH/solr/rss/conf/admin-extra.html +31 -0
  37. data/vendor/solr/example-DIH/solr/rss/conf/elevate.xml +36 -0
  38. data/vendor/solr/example-DIH/solr/rss/conf/protwords.txt +21 -0
  39. data/vendor/solr/example-DIH/solr/rss/conf/rss-data-config.xml +26 -0
  40. data/vendor/solr/example-DIH/solr/rss/conf/schema.xml +316 -0
  41. data/vendor/solr/example-DIH/solr/rss/conf/scripts.conf +24 -0
  42. data/vendor/solr/example-DIH/solr/rss/conf/solrconfig.xml +704 -0
  43. data/vendor/solr/example-DIH/solr/rss/conf/stopwords.txt +58 -0
  44. data/vendor/solr/example-DIH/solr/rss/conf/synonyms.txt +31 -0
  45. data/vendor/solr/example-DIH/solr/solr.xml +8 -0
  46. data/vendor/solr/exampledocs/books.csv +11 -0
  47. data/vendor/solr/exampledocs/hd.xml +48 -0
  48. data/vendor/solr/exampledocs/ipod_other.xml +52 -0
  49. data/vendor/solr/exampledocs/ipod_video.xml +36 -0
  50. data/vendor/solr/exampledocs/mem.xml +60 -0
  51. data/vendor/solr/exampledocs/monitor.xml +31 -0
  52. data/vendor/solr/exampledocs/monitor2.xml +30 -0
  53. data/vendor/solr/exampledocs/mp500.xml +39 -0
  54. data/vendor/solr/exampledocs/payload.xml +57 -0
  55. data/vendor/solr/exampledocs/post.jar +0 -0
  56. data/vendor/solr/exampledocs/post.sh +28 -0
  57. data/vendor/solr/exampledocs/sd500.xml +34 -0
  58. data/vendor/solr/exampledocs/solr.xml +38 -0
  59. data/vendor/solr/exampledocs/test_utf8.sh +83 -0
  60. data/vendor/solr/exampledocs/utf8-example.xml +42 -0
  61. data/vendor/solr/exampledocs/vidcard.xml +54 -0
  62. data/vendor/solr/lib/jetty-6.1.3.jar +0 -0
  63. data/vendor/solr/lib/jetty-util-6.1.3.jar +0 -0
  64. data/vendor/solr/lib/jsp-2.1/ant-1.6.5.jar +0 -0
  65. data/vendor/solr/lib/jsp-2.1/core-3.1.1.jar +0 -0
  66. data/vendor/solr/lib/jsp-2.1/jsp-2.1.jar +0 -0
  67. data/vendor/solr/lib/jsp-2.1/jsp-api-2.1.jar +0 -0
  68. data/vendor/solr/lib/servlet-api-2.5-6.1.3.jar +0 -0
  69. data/vendor/solr/logs/.keep +0 -0
  70. data/vendor/solr/multicore/README.txt +3 -0
  71. data/vendor/solr/multicore/core0/conf/schema.xml +41 -0
  72. data/vendor/solr/multicore/core0/conf/solrconfig.xml +40 -0
  73. data/vendor/solr/multicore/core1/conf/schema.xml +41 -0
  74. data/vendor/solr/multicore/core1/conf/solrconfig.xml +40 -0
  75. data/vendor/solr/multicore/exampledocs/ipod_other.xml +34 -0
  76. data/vendor/solr/multicore/exampledocs/ipod_video.xml +22 -0
  77. data/vendor/solr/multicore/solr.xml +35 -0
  78. data/vendor/solr/solr/README.txt +54 -0
  79. data/vendor/solr/solr/conf/admin-extra.html +31 -0
  80. data/vendor/solr/solr/conf/elevate.xml +36 -0
  81. data/vendor/solr/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
  82. data/vendor/solr/solr/conf/protwords.txt +21 -0
  83. data/vendor/solr/solr/conf/schema.xml +126 -0
  84. data/vendor/solr/solr/conf/scripts.conf +24 -0
  85. data/vendor/solr/solr/conf/solrconfig.xml +458 -0
  86. data/vendor/solr/solr/conf/spellings.txt +2 -0
  87. data/vendor/solr/solr/conf/stopwords.txt +58 -0
  88. data/vendor/solr/solr/conf/synonyms.txt +31 -0
  89. data/vendor/solr/solr/conf/xslt/example.xsl +132 -0
  90. data/vendor/solr/solr/conf/xslt/example_atom.xsl +67 -0
  91. data/vendor/solr/solr/conf/xslt/example_rss.xsl +66 -0
  92. data/vendor/solr/solr/conf/xslt/luke.xsl +337 -0
  93. data/vendor/solr/start.jar +0 -0
  94. data/vendor/solr/webapps/solr.war +0 -0
  95. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/jsp/org/apache/jsp/admin/index_jsp.class +0 -0
  96. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/jsp/org/apache/jsp/index_jsp.class +0 -0
  97. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/META-INF/LICENSE.txt +1086 -0
  98. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/META-INF/NOTICE.txt +254 -0
  99. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/apache-solr-core-1.4.0.jar +0 -0
  100. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/apache-solr-dataimporthandler-1.4.0.jar +0 -0
  101. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/apache-solr-solrj-1.4.0.jar +0 -0
  102. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/commons-codec-1.3.jar +0 -0
  103. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/commons-csv-1.0-SNAPSHOT-r609327.jar +0 -0
  104. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/commons-fileupload-1.2.1.jar +0 -0
  105. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/commons-httpclient-3.1.jar +0 -0
  106. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/commons-io-1.4.jar +0 -0
  107. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/geronimo-stax-api_1.0_spec-1.0.1.jar +0 -0
  108. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/jcl-over-slf4j-1.5.5.jar +0 -0
  109. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-analyzers-2.9.1.jar +0 -0
  110. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-core-2.9.1.jar +0 -0
  111. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-highlighter-2.9.1.jar +0 -0
  112. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-memory-2.9.1.jar +0 -0
  113. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-misc-2.9.1.jar +0 -0
  114. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-queries-2.9.1.jar +0 -0
  115. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-snowball-2.9.1.jar +0 -0
  116. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/lucene-spellchecker-2.9.1.jar +0 -0
  117. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/slf4j-api-1.5.5.jar +0 -0
  118. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/slf4j-jdk14-1.5.5.jar +0 -0
  119. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib/wstx-asl-3.2.7.jar +0 -0
  120. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/web.xml +148 -0
  121. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/weblogic.xml +12 -0
  122. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/_info.jsp +118 -0
  123. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/action.jsp +94 -0
  124. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/analysis.jsp +498 -0
  125. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/analysis.xsl +179 -0
  126. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/dataimport.jsp +54 -0
  127. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/debug.jsp +106 -0
  128. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/distributiondump.jsp +160 -0
  129. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/favicon.ico +0 -0
  130. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/form.jsp +137 -0
  131. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/get-file.jsp +72 -0
  132. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/get-properties.jsp +24 -0
  133. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/header.jsp +41 -0
  134. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/index.jsp +156 -0
  135. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/jquery-1.2.3.min.js +32 -0
  136. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/meta.xsl +34 -0
  137. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/ping.jsp +52 -0
  138. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/ping.xsl +71 -0
  139. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/raw-schema.jsp +38 -0
  140. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/registry.jsp +107 -0
  141. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/registry.xsl +321 -0
  142. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/replication/header.jsp +89 -0
  143. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/replication/index.jsp +378 -0
  144. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/schema.jsp +657 -0
  145. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/solr-admin.css +215 -0
  146. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/solr_small.png +0 -0
  147. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/stats.jsp +92 -0
  148. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/stats.xsl +220 -0
  149. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/tabular.xsl +141 -0
  150. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/threaddump.jsp +110 -0
  151. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/admin/threaddump.xsl +103 -0
  152. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/favicon.ico +0 -0
  153. data/vendor/solr/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/index.jsp +42 -0
  154. data/version.txt +1 -0
  155. metadata +251 -0
@@ -0,0 +1,179 @@
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; charset=UTF-8"
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="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>
@@ -0,0 +1,54 @@
1
+ <%@ page import="org.apache.solr.request.SolrRequestHandler" %>
2
+ <%@ page import="java.util.Map" %>
3
+ <%@ page import="org.apache.solr.handler.dataimport.DataImportHandler" %>
4
+ <%@ page contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
5
+ <%--
6
+ Licensed to the Apache Software Foundation (ASF) under one or more
7
+ contributor license agreements. See the NOTICE file distributed with
8
+ this work for additional information regarding copyright ownership.
9
+ The ASF licenses this file to You under the Apache License, Version 2.0
10
+ (the "License"); you may not use this file except in compliance with
11
+ the License. You may obtain a copy of the License at
12
+
13
+ http://www.apache.org/licenses/LICENSE-2.0
14
+
15
+ Unless required by applicable law or agreed to in writing, software
16
+ distributed under the License is distributed on an "AS IS" BASIS,
17
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
+ See the License for the specific language governing permissions and
19
+ limitations under the License.
20
+ --%>
21
+ <%-- do a verbatim include so we can use the local vars --%>
22
+ <%@include file="_info.jsp"%>
23
+ <html>
24
+ <%
25
+ String handler = request.getParameter("handler");
26
+
27
+ if (handler == null) {
28
+ Map<String, SolrRequestHandler> handlers = core.getRequestHandlers();
29
+ %>
30
+ <head>
31
+ <title>DataImportHandler Interactive Development</title>
32
+ <link rel="stylesheet" type="text/css" href="solr-admin.css">
33
+ </head>
34
+ <body>
35
+ Select handler:
36
+ <ul>
37
+ <%
38
+ for (String key : handlers.keySet()) {
39
+ if (handlers.get(key) instanceof DataImportHandler) { %>
40
+ <li><a href="dataimport.jsp?handler=<%=key%>"><%=key%></a></li>
41
+ <%
42
+ }
43
+ }
44
+ %>
45
+ </ul>
46
+ </body>
47
+ <% } else { %>
48
+
49
+ <frameset cols = "50%, 50%">
50
+ <frame src ="debug.jsp?handler=<%=handler%>" />
51
+ <frame src ="../select?qt=<%=handler%>&command=status" name="result"/>
52
+ </frameset>
53
+ <% } %>
54
+ </html>
@@ -0,0 +1,106 @@
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"></link>
25
+ <link rel="shortcut icon" href="favicon.ico" type="image/ico"></link>
26
+ <script src="jquery-1.2.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="../select" target="result" method="get">
34
+ <input type="hidden" name="debug" value="on"/>
35
+ <input type="hidden" name="qt" value="<%=handler%>"/>
36
+ <table>
37
+ <tr>
38
+ <th>Handler: </th>
39
+ <td><%=handler%> <a href="dataimport.jsp" target="_top">change handler</a></td>
40
+ </tr>
41
+ <tr>
42
+ <td colspan="2">
43
+ <table width="100%">
44
+ <tr>
45
+ <td>
46
+ <select name="command">
47
+ <option value="full-import" selected="selected">full-import</option>
48
+ <option value="delta-import">delta-import</option>
49
+ </select>
50
+ </td>
51
+ <td><strong>Verbose</strong>&nbsp;<input
52
+ name="verbose" type="checkbox"></td>
53
+ <td><strong>Commit</strong>&nbsp;<input
54
+ name="commit" type="checkbox"></td>
55
+ <td><strong>Clean</strong>&nbsp;<input
56
+ name="clean" type="checkbox"></td>
57
+ <td><strong>Start Row</strong>&nbsp;<input
58
+ name="start" size="4" type="text" value="0"></td>
59
+ <td><strong>No. of Rows</strong>&nbsp;<input name="rows"
60
+ type="text" size="4" value="10"></td>
61
+ </tr>
62
+ </table>
63
+ </td>
64
+ <tr>
65
+ <td><strong>data config xml</strong></td>
66
+ <td><input class="stdbutton" type="submit" value="debug now">
67
+ </td>
68
+ </tr>
69
+ <tr>
70
+ <td colspan="2"><textarea id="txtDataConfig" rows="30" cols="80" name="dataConfig"></textarea></td>
71
+ <script type="text/javascript" language="javascript">
72
+ $.get("../select?qt=<%=handler%>&command=show-config", function(data){
73
+ $('#txtDataConfig').attr('value', data);
74
+ });
75
+ </script>
76
+ </tr>
77
+ </table>
78
+ </form>
79
+ <form action="../select" target="result" method="get">
80
+ <input type="hidden" name="clean" value="false">
81
+ <input type="hidden" name="commit" value="true">
82
+ <input type="hidden" name="qt" value="<%=handler%>"/>
83
+ <input class="stdbutton" type="submit" name="command" value="full-import">
84
+ <input class="stdbutton" type="submit" name="command" value="delta-import">
85
+ <input class="stdbutton" type="submit" name="command" value="status">
86
+ <input class="stdbutton" type="submit" name="command" value="reload-config">
87
+ <input class="stdbutton" type="submit" name="command" value="abort">
88
+ </form>
89
+ <form action="../select" target="result" method="get">
90
+ <input type="hidden" name="q" value="*:*">
91
+ <input type="hidden" name="start" value="0">
92
+ <input type="hidden" name="rows" value="0">
93
+ <input class="stdbutton" type="submit" value="Documents Count">
94
+ </form>
95
+ <form action="../select" target="result" method="get">
96
+ <input type="hidden" name="qt" value="<%=handler%>"/>
97
+ <input type="hidden" name="verbose" value="true">
98
+ <input type="hidden" name="clean" value="true">
99
+ <input type="hidden" name="commit" value="true">
100
+ <input type="hidden" name="command" value="full-import">
101
+ <input class="stdbutton" type="submit" value="Full Import with Cleaning">
102
+ </form>
103
+
104
+ <a href="index.jsp" target="_parent">Return to Admin Page</a>
105
+ </body>
106
+ </html>
@@ -0,0 +1,160 @@
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>