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,34 @@
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
+ <xsl:stylesheet
18
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
19
+ version="1.0">
20
+
21
+ <xsl:output
22
+ method="html"
23
+ encoding="utf-8"
24
+ media-type="text/html; charset=UTF-8"
25
+ indent="yes"
26
+ doctype-public="-//W3C//DTD HTML 4.01//EN"
27
+ doctype-system="http://www.w3.org/TR/html4/strict.dtd" />
28
+
29
+ <xsl:template match="solr/meta">
30
+ <xsl:value-of select="host" />:<xsl:value-of select="port" />
31
+ cwd=<xsl:value-of select="cwd" /> SolrHome=<xsl:value-of select="solrHome" />
32
+ </xsl:template>
33
+
34
+ </xsl:stylesheet>
@@ -0,0 +1,52 @@
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.request.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>
@@ -0,0 +1,71 @@
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 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="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>
@@ -0,0 +1,38 @@
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
+ %>
@@ -0,0 +1,107 @@
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>
@@ -0,0 +1,321 @@
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 815587 2009-09-16 01:57:15Z gsingers $ -->
19
+ <!-- $URL: https://svn.apache.org/repos/asf/lucene/solr/branches/branch-1.4/src/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; charset=UTF-8"
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="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
+ &#xa0;
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()"/>:&#xa0;</strong>
137
+ </td>
138
+ <td>
139
+ <tt><xsl:value-of select="."/>&#xa0;</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
+ &#xa0;
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()"/>:&#xa0;</strong>
171
+ </td>
172
+ <td>
173
+ <tt><xsl:value-of select="."/>&#xa0;</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
+ &#xa0;
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()"/>:&#xa0;</strong>
205
+ </td>
206
+ <td>
207
+ <tt><xsl:value-of select="."/>&#xa0;</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
+ &#xa0;
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()"/>:&#xa0;</strong>
239
+ </td>
240
+ <td>
241
+ <tt><xsl:value-of select="."/>&#xa0;</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
+ &#xa0;
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()"/>:&#xa0;</strong>
271
+ </td>
272
+ <td>
273
+ <tt><xsl:value-of select="."/>&#xa0;</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
+ &#xa0;
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()"/>:&#xa0;</strong>
306
+ </td>
307
+ <td>
308
+ <tt><xsl:value-of select="."/>&#xa0;</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>