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.
Files changed (315) hide show
  1. data/History.rdoc +5 -0
  2. data/Manifest.txt +268 -33
  3. data/NOTICE.txt +1 -1
  4. data/README.rdoc +6 -6
  5. data/assembly.xml +2 -2
  6. data/bin/rjack-solr-fg +1 -1
  7. data/init/rjack-solr +2 -2
  8. data/lib/rjack-solr.rb +7 -2
  9. data/lib/rjack-solr/base.rb +2 -2
  10. data/lib/rjack-solr/commons-cli-1.2.jar +0 -0
  11. data/lib/rjack-solr/config.rb +1 -1
  12. data/lib/rjack-solr/server.rb +1 -1
  13. data/lib/rjack-solr/solr-core-4.0.0.jar +0 -0
  14. data/lib/rjack-solr/solr-solrj-4.0.0.jar +0 -0
  15. data/pom.xml +19 -6
  16. data/test/test_solr.rb +7 -5
  17. data/webapp/META-INF/LICENSE.txt +0 -940
  18. data/webapp/META-INF/MANIFEST.MF +5 -5
  19. data/webapp/META-INF/NOTICE.txt +160 -93
  20. data/webapp/WEB-INF/web.xml +57 -43
  21. data/webapp/admin.html +140 -0
  22. data/webapp/css/chosen.css +392 -0
  23. data/webapp/css/styles/analysis.css +293 -0
  24. data/webapp/css/styles/cloud.css +331 -0
  25. data/webapp/css/styles/common.css +593 -0
  26. data/webapp/css/styles/cores.css +203 -0
  27. data/webapp/css/styles/dashboard.css +127 -0
  28. data/webapp/css/styles/dataimport.css +222 -0
  29. data/webapp/css/styles/index.css +195 -0
  30. data/webapp/css/styles/java-properties.css +33 -0
  31. data/webapp/css/styles/logging.css +323 -0
  32. data/webapp/css/styles/menu.css +272 -0
  33. data/webapp/css/styles/plugins.css +175 -0
  34. data/webapp/css/styles/query.css +137 -0
  35. data/webapp/css/styles/replication.css +494 -0
  36. data/webapp/css/styles/schema-browser.css +476 -0
  37. data/webapp/css/styles/threads.css +153 -0
  38. data/webapp/img/ZeroClipboard.swf +0 -0
  39. data/webapp/img/chosen-sprite.png +0 -0
  40. data/webapp/img/div.gif +0 -0
  41. data/webapp/{admin → img}/favicon.ico +0 -0
  42. data/webapp/img/filetypes/7z.png +0 -0
  43. data/webapp/img/filetypes/README +27 -0
  44. data/webapp/img/filetypes/ai.png +0 -0
  45. data/webapp/img/filetypes/aiff.png +0 -0
  46. data/webapp/img/filetypes/asc.png +0 -0
  47. data/webapp/img/filetypes/audio.png +0 -0
  48. data/webapp/img/filetypes/bin.png +0 -0
  49. data/webapp/img/filetypes/bz2.png +0 -0
  50. data/webapp/img/filetypes/c.png +0 -0
  51. data/webapp/img/filetypes/cfc.png +0 -0
  52. data/webapp/img/filetypes/cfm.png +0 -0
  53. data/webapp/img/filetypes/chm.png +0 -0
  54. data/webapp/img/filetypes/class.png +0 -0
  55. data/webapp/img/filetypes/conf.png +0 -0
  56. data/webapp/img/filetypes/cpp.png +0 -0
  57. data/webapp/img/filetypes/cs.png +0 -0
  58. data/webapp/img/filetypes/css.png +0 -0
  59. data/webapp/img/filetypes/csv.png +0 -0
  60. data/webapp/img/filetypes/deb.png +0 -0
  61. data/webapp/img/filetypes/divx.png +0 -0
  62. data/webapp/img/filetypes/doc.png +0 -0
  63. data/webapp/img/filetypes/dot.png +0 -0
  64. data/webapp/img/filetypes/eml.png +0 -0
  65. data/webapp/img/filetypes/enc.png +0 -0
  66. data/webapp/img/filetypes/file.png +0 -0
  67. data/webapp/img/filetypes/gif.png +0 -0
  68. data/webapp/img/filetypes/gz.png +0 -0
  69. data/webapp/img/filetypes/hlp.png +0 -0
  70. data/webapp/img/filetypes/htm.png +0 -0
  71. data/webapp/img/filetypes/html.png +0 -0
  72. data/webapp/img/filetypes/image.png +0 -0
  73. data/webapp/img/filetypes/iso.png +0 -0
  74. data/webapp/img/filetypes/jar.png +0 -0
  75. data/webapp/img/filetypes/java.png +0 -0
  76. data/webapp/img/filetypes/jpeg.png +0 -0
  77. data/webapp/img/filetypes/jpg.png +0 -0
  78. data/webapp/img/filetypes/js.png +0 -0
  79. data/webapp/img/filetypes/lua.png +0 -0
  80. data/webapp/img/filetypes/m.png +0 -0
  81. data/webapp/img/filetypes/mm.png +0 -0
  82. data/webapp/img/filetypes/mov.png +0 -0
  83. data/webapp/img/filetypes/mp3.png +0 -0
  84. data/webapp/img/filetypes/mpg.png +0 -0
  85. data/webapp/img/filetypes/odc.png +0 -0
  86. data/webapp/img/filetypes/odf.png +0 -0
  87. data/webapp/img/filetypes/odg.png +0 -0
  88. data/webapp/img/filetypes/odi.png +0 -0
  89. data/webapp/img/filetypes/odp.png +0 -0
  90. data/webapp/img/filetypes/ods.png +0 -0
  91. data/webapp/img/filetypes/odt.png +0 -0
  92. data/webapp/img/filetypes/ogg.png +0 -0
  93. data/webapp/img/filetypes/pdf.png +0 -0
  94. data/webapp/img/filetypes/pgp.png +0 -0
  95. data/webapp/img/filetypes/php.png +0 -0
  96. data/webapp/img/filetypes/pl.png +0 -0
  97. data/webapp/img/filetypes/png.png +0 -0
  98. data/webapp/img/filetypes/ppt.png +0 -0
  99. data/webapp/img/filetypes/ps.png +0 -0
  100. data/webapp/img/filetypes/py.png +0 -0
  101. data/webapp/img/filetypes/ram.png +0 -0
  102. data/webapp/img/filetypes/rar.png +0 -0
  103. data/webapp/img/filetypes/rb.png +0 -0
  104. data/webapp/img/filetypes/rm.png +0 -0
  105. data/webapp/img/filetypes/rpm.png +0 -0
  106. data/webapp/img/filetypes/rtf.png +0 -0
  107. data/webapp/img/filetypes/sig.png +0 -0
  108. data/webapp/img/filetypes/sql.png +0 -0
  109. data/webapp/img/filetypes/swf.png +0 -0
  110. data/webapp/img/filetypes/sxc.png +0 -0
  111. data/webapp/img/filetypes/sxd.png +0 -0
  112. data/webapp/img/filetypes/sxi.png +0 -0
  113. data/webapp/img/filetypes/sxw.png +0 -0
  114. data/webapp/img/filetypes/tar.png +0 -0
  115. data/webapp/img/filetypes/tex.png +0 -0
  116. data/webapp/img/filetypes/tgz.png +0 -0
  117. data/webapp/img/filetypes/txt.png +0 -0
  118. data/webapp/img/filetypes/vcf.png +0 -0
  119. data/webapp/img/filetypes/video.png +0 -0
  120. data/webapp/img/filetypes/vsd.png +0 -0
  121. data/webapp/img/filetypes/wav.png +0 -0
  122. data/webapp/img/filetypes/wma.png +0 -0
  123. data/webapp/img/filetypes/wmv.png +0 -0
  124. data/webapp/img/filetypes/xls.png +0 -0
  125. data/webapp/img/filetypes/xml.png +0 -0
  126. data/webapp/img/filetypes/xpi.png +0 -0
  127. data/webapp/img/filetypes/xvid.png +0 -0
  128. data/webapp/img/filetypes/zip.png +0 -0
  129. data/webapp/img/ico/arrow-000-small.png +0 -0
  130. data/webapp/img/ico/arrow-circle.png +0 -0
  131. data/webapp/img/ico/arrow-switch.png +0 -0
  132. data/webapp/img/ico/asterisk.png +0 -0
  133. data/webapp/img/ico/battery.png +0 -0
  134. data/webapp/img/ico/block-small.png +0 -0
  135. data/webapp/img/ico/block.png +0 -0
  136. data/webapp/img/ico/book-open-text.png +0 -0
  137. data/webapp/img/ico/box.png +0 -0
  138. data/webapp/img/ico/bug.png +0 -0
  139. data/webapp/img/ico/chart.png +0 -0
  140. data/webapp/img/ico/chevron-small-expand.png +0 -0
  141. data/webapp/img/ico/chevron-small.png +0 -0
  142. data/webapp/img/ico/clipboard-list.png +0 -0
  143. data/webapp/img/ico/clipboard-paste-document-text.png +0 -0
  144. data/webapp/img/ico/clipboard-paste.png +0 -0
  145. data/webapp/img/ico/clock-select-remain.png +0 -0
  146. data/webapp/img/ico/clock-select.png +0 -0
  147. data/webapp/img/ico/construction.png +0 -0
  148. data/webapp/img/ico/cross-0.png +0 -0
  149. data/webapp/img/ico/cross-1.png +0 -0
  150. data/webapp/img/ico/cross.png +0 -0
  151. data/webapp/img/ico/dashboard.png +0 -0
  152. data/webapp/img/ico/database.png +0 -0
  153. data/webapp/img/ico/databases.png +0 -0
  154. data/webapp/img/ico/disk-black.png +0 -0
  155. data/webapp/img/ico/document-convert.png +0 -0
  156. data/webapp/img/ico/document-import.png +0 -0
  157. data/webapp/img/ico/document-list.png +0 -0
  158. data/webapp/img/ico/document-text.png +0 -0
  159. data/webapp/img/ico/download-cloud.png +0 -0
  160. data/webapp/img/ico/exclamation-button.png +0 -0
  161. data/webapp/img/ico/eye.png +0 -0
  162. data/webapp/img/ico/folder-export.png +0 -0
  163. data/webapp/img/ico/folder-tree.png +0 -0
  164. data/webapp/img/ico/folder.png +0 -0
  165. data/webapp/img/ico/funnel-small.png +0 -0
  166. data/webapp/img/ico/funnel.png +0 -0
  167. data/webapp/img/ico/gear.png +0 -0
  168. data/webapp/img/ico/globe-network.png +0 -0
  169. data/webapp/img/ico/globe.png +0 -0
  170. data/webapp/img/ico/hammer-screwdriver.png +0 -0
  171. data/webapp/img/ico/hand.png +0 -0
  172. data/webapp/img/ico/highlighter-text.png +0 -0
  173. data/webapp/img/ico/hourglass--exclamation.png +0 -0
  174. data/webapp/img/ico/hourglass.png +0 -0
  175. data/webapp/img/ico/inbox-document-text.png +0 -0
  176. data/webapp/img/ico/information-button.png +0 -0
  177. data/webapp/img/ico/information-small.png +0 -0
  178. data/webapp/img/ico/information-white.png +0 -0
  179. data/webapp/img/ico/information.png +0 -0
  180. data/webapp/img/ico/jar.png +0 -0
  181. data/webapp/img/ico/magnifier.png +0 -0
  182. data/webapp/img/ico/mail.png +0 -0
  183. data/webapp/img/ico/memory.png +0 -0
  184. data/webapp/img/ico/molecule.png +0 -0
  185. data/webapp/img/ico/network-cloud.png +0 -0
  186. data/webapp/img/ico/network-status-away.png +0 -0
  187. data/webapp/img/ico/network-status-busy.png +0 -0
  188. data/webapp/img/ico/network-status-offline.png +0 -0
  189. data/webapp/img/ico/network-status.png +0 -0
  190. data/webapp/img/ico/network.png +0 -0
  191. data/webapp/img/ico/node-design.png +0 -0
  192. data/webapp/img/ico/node-master.png +0 -0
  193. data/webapp/img/ico/node-select.png +0 -0
  194. data/webapp/img/ico/node-slave.png +0 -0
  195. data/webapp/img/ico/node.png +0 -0
  196. data/webapp/img/ico/pencil-small.png +0 -0
  197. data/webapp/img/ico/plus-button.png +0 -0
  198. data/webapp/img/ico/processor.png +0 -0
  199. data/webapp/img/ico/prohibition.png +0 -0
  200. data/webapp/img/ico/property.png +0 -0
  201. data/webapp/img/ico/question-small-white.png +0 -0
  202. data/webapp/img/ico/question-white.png +0 -0
  203. data/webapp/img/ico/question.png +0 -0
  204. data/webapp/img/ico/receipt-invoice.png +0 -0
  205. data/webapp/img/ico/receipt.png +0 -0
  206. data/webapp/img/ico/script-code.png +0 -0
  207. data/webapp/img/ico/server-cast.png +0 -0
  208. data/webapp/img/ico/server.png +0 -0
  209. data/webapp/img/ico/sitemap.png +0 -0
  210. data/webapp/img/ico/slash.png +0 -0
  211. data/webapp/img/ico/status-away.png +0 -0
  212. data/webapp/img/ico/status-busy.png +0 -0
  213. data/webapp/img/ico/status-offline.png +0 -0
  214. data/webapp/img/ico/status.png +0 -0
  215. data/webapp/img/ico/system-monitor--exclamation.png +0 -0
  216. data/webapp/img/ico/system-monitor.png +0 -0
  217. data/webapp/img/ico/table.png +0 -0
  218. data/webapp/img/ico/terminal.png +0 -0
  219. data/webapp/img/ico/tick-circle.png +0 -0
  220. data/webapp/img/ico/tick-red.png +0 -0
  221. data/webapp/img/ico/tick.png +0 -0
  222. data/webapp/img/ico/toggle-small-expand.png +0 -0
  223. data/webapp/img/ico/toggle-small.png +0 -0
  224. data/webapp/img/ico/toolbox.png +0 -0
  225. data/webapp/img/ico/ui-accordion.png +0 -0
  226. data/webapp/img/ico/ui-address-bar.png +0 -0
  227. data/webapp/img/ico/ui-check-box-uncheck.png +0 -0
  228. data/webapp/img/ico/ui-check-box.png +0 -0
  229. data/webapp/img/ico/ui-radio-button-uncheck.png +0 -0
  230. data/webapp/img/ico/ui-radio-button.png +0 -0
  231. data/webapp/img/ico/ui-text-field-select.png +0 -0
  232. data/webapp/img/ico/users.png +0 -0
  233. data/webapp/img/ico/wooden-box.png +0 -0
  234. data/webapp/img/ico/zone.png +0 -0
  235. data/webapp/img/loader-light.gif +0 -0
  236. data/webapp/img/loader.gif +0 -0
  237. data/webapp/img/lucene-ico.png +0 -0
  238. data/webapp/img/solr-ico.png +0 -0
  239. data/webapp/{admin/solr_small.png → img/solr.png} +0 -0
  240. data/webapp/img/tree.png +0 -0
  241. data/webapp/js/lib/ZeroClipboard.js +317 -0
  242. data/webapp/js/lib/chosen.js +953 -0
  243. data/webapp/{admin/get-properties.jsp → js/lib/console.js} +13 -10
  244. data/webapp/js/lib/d3.js +9342 -0
  245. data/webapp/js/lib/highlight.js +1 -0
  246. data/webapp/{admin/jquery-1.4.3.min.js → js/lib/jquery-1.7.2.min.js} +0 -0
  247. data/webapp/js/lib/jquery.blockUI.js +499 -0
  248. data/webapp/js/lib/jquery.cookie.js +47 -0
  249. data/webapp/js/lib/jquery.form.js +782 -0
  250. data/webapp/js/lib/jquery.jstree.js +3510 -0
  251. data/webapp/js/lib/jquery.sammy.js +1856 -0
  252. data/webapp/js/lib/jquery.sparkline.js +1271 -0
  253. data/webapp/js/lib/jquery.timeago.js +165 -0
  254. data/webapp/js/lib/linker.js +48 -0
  255. data/webapp/js/lib/order.js +189 -0
  256. data/webapp/js/main.js +57 -0
  257. data/webapp/js/require.js +11319 -0
  258. data/webapp/js/scripts/analysis.js +549 -0
  259. data/webapp/js/scripts/app.js +368 -0
  260. data/webapp/js/scripts/cloud.js +719 -0
  261. data/webapp/js/scripts/cores.js +540 -0
  262. data/webapp/js/scripts/dashboard.js +540 -0
  263. data/webapp/js/scripts/dataimport.js +567 -0
  264. data/webapp/js/scripts/file.js +56 -0
  265. data/webapp/js/scripts/index.js +344 -0
  266. data/webapp/js/scripts/java-properties.js +107 -0
  267. data/webapp/js/scripts/logging.js +519 -0
  268. data/webapp/js/scripts/ping.js +72 -0
  269. data/webapp/js/scripts/plugins.js +426 -0
  270. data/webapp/js/scripts/query.js +170 -0
  271. data/webapp/js/scripts/replication.js +557 -0
  272. data/webapp/js/scripts/schema-browser.js +1206 -0
  273. data/webapp/js/scripts/threads.js +159 -0
  274. data/webapp/tpl/analysis.html +83 -0
  275. data/webapp/tpl/cloud.html +54 -0
  276. data/webapp/tpl/cores.html +215 -0
  277. data/webapp/tpl/dashboard.html +164 -0
  278. data/webapp/tpl/dataimport.html +123 -0
  279. data/webapp/tpl/index.html +250 -0
  280. data/webapp/tpl/logging.html +23 -0
  281. data/webapp/tpl/plugins.html +39 -0
  282. data/webapp/tpl/query.html +318 -0
  283. data/webapp/tpl/replication.html +207 -0
  284. data/webapp/tpl/schema-browser.html +178 -0
  285. data/webapp/tpl/threads.html +56 -0
  286. metadata +307 -40
  287. data/lib/rjack-solr/solr-core-3.6.2.jar +0 -0
  288. data/lib/rjack-solr/solr-solrj-3.6.2.jar +0 -0
  289. data/webapp/admin/_info.jsp +0 -120
  290. data/webapp/admin/action.jsp +0 -94
  291. data/webapp/admin/analysis.jsp +0 -496
  292. data/webapp/admin/analysis.xsl +0 -179
  293. data/webapp/admin/dataimport.jsp +0 -53
  294. data/webapp/admin/debug.jsp +0 -103
  295. data/webapp/admin/distributiondump.jsp +0 -160
  296. data/webapp/admin/form.jsp +0 -152
  297. data/webapp/admin/get-file.jsp +0 -72
  298. data/webapp/admin/header.jsp +0 -44
  299. data/webapp/admin/index.jsp +0 -162
  300. data/webapp/admin/meta.xsl +0 -34
  301. data/webapp/admin/ping.jsp +0 -52
  302. data/webapp/admin/ping.xsl +0 -71
  303. data/webapp/admin/raw-schema.jsp +0 -38
  304. data/webapp/admin/registry.jsp +0 -107
  305. data/webapp/admin/registry.xsl +0 -321
  306. data/webapp/admin/replication/header.jsp +0 -89
  307. data/webapp/admin/replication/index.jsp +0 -378
  308. data/webapp/admin/schema.jsp +0 -690
  309. data/webapp/admin/solr-admin.css +0 -215
  310. data/webapp/admin/stats.jsp +0 -92
  311. data/webapp/admin/stats.xsl +0 -220
  312. data/webapp/admin/tabular.xsl +0 -141
  313. data/webapp/admin/threaddump.jsp +0 -110
  314. data/webapp/admin/threaddump.xsl +0 -103
  315. data/webapp/index.jsp +0 -49
@@ -1,215 +0,0 @@
1
- /**
2
- * Licensed to the Apache Software Foundation (ASF) under one or more
3
- * contributor license agreements. See the NOTICE file distributed with
4
- * this work for additional information regarding copyright ownership.
5
- * The ASF licenses this file to You under the Apache License, Version 2.0
6
- * (the "License"); you may not use this file except in compliance with
7
- * the License. You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
-
18
- h1, h2, h3, h4, h5 {
19
- display: block;
20
- font-family: ITC Officina Sans Book, Terminator Two, Helvetica, Arial, sans-serif;
21
- font-style: bold;
22
- margin: 0;
23
- }
24
-
25
- strong {
26
- font-family: ITC Officina Sans Book, Terminator Two, Helvetica, Arial, sans-serif;
27
- font-style: bold;
28
- margin: 0;
29
- }
30
-
31
- input.std, textarea.std {
32
- color: black;
33
- border: 2px inset #ff9933;
34
- background-color: #ffffff;
35
- width:450px;
36
- max-width:450px;
37
- }
38
-
39
- input.stdbutton {
40
- font-family: ITC Officina Sans Book, Helvetica, Arial, sans-serif;
41
- font-style: bold;
42
- font-size: 11;
43
- text-transform: capitalize;
44
- color: black;
45
- background-color: #dddddd;
46
- border: groove #ff9933;
47
- }
48
-
49
- input.stdbutton:hover {
50
- color: #0000ff;
51
- border: groove #0000ff;
52
- }
53
-
54
- input.stdbuttondis{
55
- font-family: ITC Officina Sans Book, Helvetica, Arial, sans-serif;
56
- font-style: bold;
57
- font-size: 11;
58
- text-transform: capitalize;
59
- color: #8B8B83;
60
- background-color: #dddddd;
61
- border: groove #8B8B83;
62
- }
63
-
64
- body {
65
- background-color: #bbbbbb;
66
- }
67
-
68
- table {
69
- display: table;
70
- background-color: #FAF7E4;
71
- width: 100%;
72
- border-top: 4px solid #666666;
73
- border-left: 2px solid #666666;
74
- text-align: left;
75
- vertical-align: top;
76
- cellpadding-right: 8px;
77
- }
78
-
79
- table.responseHeader, table.analysis {
80
- width: auto;
81
- }
82
-
83
- table {
84
- border-collapse: collapse
85
- }
86
-
87
- tr > td:first-child {
88
- width: 30%;
89
- }
90
-
91
- td.debugdata, td.highlight, td.responseHeader {
92
- width: auto;
93
- }
94
-
95
- td.highlight {
96
- background: #ccccff;
97
- }
98
-
99
- td.responseHeader {
100
- width: auto;
101
- text-align: right;
102
- }
103
-
104
- td.responseHeader + td {
105
- text-align: left;
106
- font-family: Courier;
107
- }
108
-
109
-
110
- th, td {
111
- text-align: left;
112
- vertical-align: top;
113
- border-bottom: 1px solid #ff9933;
114
- }
115
-
116
- a {
117
- text-decoration: none;
118
- font-weight: bold;
119
- font-size: 11px;
120
- background: #FAF7E4;
121
- text-transform: uppercase;
122
- }
123
-
124
- a:link {
125
- color: #0000aa;
126
- }
127
-
128
- a:visited {
129
- color: #0000ff;
130
- }
131
-
132
- a:active {
133
- color: #4444ff;
134
- }
135
-
136
- a:hover {
137
- color: #0000ff;
138
- background: #ccccff;
139
- }
140
-
141
- a:offsite {
142
- color: #0000aa;
143
- }
144
-
145
- table.analysis th, table.analysis td {
146
- border-right:1px solid black;
147
- }
148
-
149
- /**
150
- * styles for the schema browser
151
- */
152
-
153
- table.topTerms {
154
- width: 450px;
155
- }
156
-
157
- table.histogram {
158
- vertical-align: bottom;
159
- }
160
-
161
- table.histogram td, table.histogram th {
162
- text-align: center;
163
- vertical-align: bottom;
164
- border-bottom: 1px solid #ff9933;
165
- width: auto;
166
- }
167
-
168
- #menu {
169
- background-color: #FAF7E4;
170
- height:100%;
171
- min-height:100%;
172
- width:140px;
173
- float:left;
174
- margin-right:20px
175
- }
176
- #menu h3 {
177
- padding-left:10px;
178
- }
179
- #menu ul {
180
- list-style: none;
181
- text-align: right;
182
- margin: 0;
183
- padding: 0
184
- }
185
- #menu li.header {
186
- text-align: left;
187
- }
188
- #menu li {
189
- border: 1px solid #ff9933;
190
- margin: 0
191
- }
192
- #menu li a {
193
- display:block;
194
- }
195
- #menu li.selected a {
196
- background-color: #ccccff
197
- }
198
- #menu a:hover {
199
- background: #ccccff
200
- }
201
-
202
- #schemaTop {
203
- border-bottom:1px black solid;
204
- }
205
-
206
- #content {
207
- margin-left: 160px;
208
- }
209
- #topTerms {
210
- float:left;
211
- margin-right:40px;
212
- }
213
- div.analyzer {
214
- margin-left:20px;
215
- }
@@ -1,92 +0,0 @@
1
- <%@ page contentType="text/xml; charset=utf-8" pageEncoding="UTF-8" language="java" %>
2
- <%--
3
- Licensed to the Apache Software Foundation (ASF) under one or more
4
- contributor license agreements. See the NOTICE file distributed with
5
- this work for additional information regarding copyright ownership.
6
- The ASF licenses this file to You under the Apache License, Version 2.0
7
- (the "License"); you may not use this file except in compliance with
8
- the License. You may obtain a copy of the License at
9
-
10
- http://www.apache.org/licenses/LICENSE-2.0
11
-
12
- Unless required by applicable law or agreed to in writing, software
13
- distributed under the License is distributed on an "AS IS" BASIS,
14
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- See the License for the specific language governing permissions and
16
- limitations under the License.
17
- --%>
18
- <%@ page import="org.apache.solr.core.SolrInfoMBean,
19
- org.apache.solr.core.SolrInfoRegistry,
20
- org.apache.solr.common.util.NamedList,
21
- java.util.Date,
22
- java.util.Map"%>
23
- <?xml-stylesheet type="text/xsl" href="stats.xsl"?>
24
- <%@include file="_info.jsp" %>
25
-
26
-
27
- <solr>
28
- <%
29
- if (core.getName() != null) { %>
30
- <core><% XML.escapeCharData(core.getName(), out); %></core>
31
- <% } %>
32
- <schema><% XML.escapeCharData(collectionName, out); %></schema>
33
- <host><% XML.escapeCharData(hostname, out); %></host>
34
- <now><% XML.escapeCharData(new Date().toString(), out); %></now>
35
- <start><% XML.escapeCharData(new Date(core.getStartTime()).toString(), out); %></start>
36
- <solr-info>
37
- <%
38
- for (SolrInfoMBean.Category cat : SolrInfoMBean.Category.values()) {
39
- %>
40
- <<%= cat.toString() %>>
41
- <%
42
- Map<String,SolrInfoMBean> reg = core.getInfoRegistry();
43
- for (Map.Entry<String,SolrInfoMBean> entry : reg.entrySet()) {
44
- String key = entry.getKey();
45
- SolrInfoMBean m = entry.getValue();
46
-
47
- if (m.getCategory() != cat) continue;
48
-
49
- NamedList nl = m.getStatistics();
50
- if ((nl != null) && (nl.size() != 0)) {
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
- %>
56
- <entry>
57
- <name>
58
- <% XML.escapeCharData(key, out); %>
59
- </name>
60
- <class>
61
- <% XML.escapeCharData(name, out); %>
62
- </class>
63
- <version>
64
- <% XML.escapeCharData(vers, out); %>
65
- </version>
66
- <description>
67
- <% XML.escapeCharData(desc, out); %>
68
- </description>
69
- <stats>
70
- <%
71
- for (int i = 0; i < nl.size() ; i++) {
72
- %>
73
- <stat name="<% XML.escapeAttributeValue(nl.getName(i), out); %>" >
74
- <% XML.escapeCharData(nl.getVal(i).toString(), out); %>
75
- </stat>
76
- <%
77
- }
78
- %>
79
- </stats>
80
- </entry>
81
- <%
82
- }
83
- %>
84
- <%
85
- }
86
- %>
87
- </<%= cat.toString() %>>
88
- <%
89
- }
90
- %>
91
- </solr-info>
92
- </solr>
@@ -1,220 +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: stats.xsl 1075192 2011-02-28 00:50:09Z uschindler $ -->
19
- <!-- $URL: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_3_6/solr/webapp/web/admin/stats.xsl $ -->
20
-
21
- <xsl:stylesheet
22
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
23
- version="1.0">
24
-
25
-
26
- <xsl:output
27
- method="html"
28
- encoding="utf-8"
29
- media-type="text/html"
30
- indent="yes"
31
- doctype-public="-//W3C//DTD HTML 4.01//EN"
32
- doctype-system="http://www.w3.org/TR/html4/strict.dtd" />
33
-
34
-
35
- <xsl:template match="/">
36
- <xsl:variable name="title">
37
- <!-- no whitespace before the colon -->
38
- Solr Statistics<xsl:if test="solr/core">:
39
- <xsl:value-of select="solr/core"/>
40
- </xsl:if>
41
- (<xsl:value-of select="solr/schema" />)
42
- </xsl:variable>
43
- <html>
44
- <head>
45
- <link rel="stylesheet" type="text/css" href="solr-admin.css"></link>
46
- <link rel="icon" href="favicon.ico" type="image/ico"></link>
47
- <link rel="shortcut icon" href="favicon.ico" type="image/ico"></link>
48
- <title><xsl:value-of select="$title"/></title>
49
- </head>
50
- <body>
51
- <a href=".">
52
- <img border="0" align="right" height="78" width="142" src="solr_small.png" alt="Apache Solr">
53
- </img>
54
- </a>
55
- <h1><xsl:value-of select="$title"/></h1>
56
- <xsl:value-of select="solr/host" />
57
- <br clear="all" />
58
- <xsl:apply-templates/>
59
- <br /><br />
60
- <a href=".">Return to Admin Page</a>
61
- </body>
62
- </html>
63
- </xsl:template>
64
-
65
- <xsl:template match="solr">
66
- <table>
67
- <tr>
68
- <td>
69
- <H3>Category</H3>
70
- </td>
71
- <td>
72
- [<a href="#core">Core</a>]
73
- [<a href="#cache">Cache</a>]
74
- [<a href="#query">Query</a>]
75
- [<a href="#update">Update</a>]
76
- [<a href="#highlight">Highlighting</a>]
77
- [<a href="#other">Other</a>]
78
- </td>
79
- </tr>
80
- <tr>
81
- <td>
82
- </td>
83
- <td>
84
- Current Time: <xsl:value-of select="now" />
85
- </td>
86
- </tr>
87
- <tr>
88
- <td>
89
- </td>
90
- <td>
91
- Server Start Time: <xsl:value-of select="start" />
92
- </td>
93
- </tr>
94
- <xsl:apply-templates select="*" mode="header" />
95
- </table>
96
- <xsl:apply-templates select="solr-info" mode="main" />
97
- </xsl:template>
98
-
99
- <!-- catch all in case new header info gets added to XML -->
100
- <xsl:template match="solr/*" mode="header" priority="-10">
101
- <tr>
102
- <td>
103
- </td>
104
- <td>
105
- <xsl:value-of select="local-name()" />: <xsl:value-of select="text()" />
106
- </td>
107
- </tr>
108
- </xsl:template>
109
-
110
- <!-- things we've already explicitly taken care of -->
111
- <xsl:template match="solr/schema" mode="header" />
112
- <xsl:template match="solr/core" mode="header" />
113
- <xsl:template match="solr/host" mode="header" />
114
- <xsl:template match="solr/now" mode="header" />
115
- <xsl:template match="solr/start" mode="header" />
116
- <xsl:template match="solr/solr-info" mode="header" />
117
-
118
- <xsl:template match="solr/solr-info" mode="main">
119
- <xsl:apply-templates/>
120
- </xsl:template>
121
-
122
- <xsl:template match="solr/solr-info/*">
123
- <br />
124
- <xsl:apply-templates select="." mode="sub-header" />
125
- <table>
126
- <tr>
127
- <td align="right">
128
- &#xa0;
129
- </td>
130
- <td>
131
- </td>
132
- </tr>
133
- <xsl:apply-templates/>
134
- </table>
135
- </xsl:template>
136
-
137
- <xsl:template match="solr/solr-info/CORE" mode="sub-header">
138
- <a name="core"><h2>Core</h2></a>
139
- </xsl:template>
140
-
141
- <xsl:template match="solr/solr-info/CACHE" mode="sub-header">
142
- <a name="cache"><h2>Cache</h2></a>
143
- </xsl:template>
144
-
145
- <xsl:template match="solr/solr-info/QUERYHANDLER" mode="sub-header">
146
- <a name="query"><h2>Query Handlers</h2></a>
147
- </xsl:template>
148
-
149
- <xsl:template match="solr/solr-info/UPDATEHANDLER" mode="sub-header">
150
- <a name="update"><h2>Update Handlers</h2></a>
151
- </xsl:template>
152
-
153
- <xsl:template match="solr/solr-info/HIGHLIGHTING" mode="sub-header">
154
- <a name="highlight"><h2>Highlighting</h2></a>
155
- </xsl:template>
156
-
157
- <!-- catch all for new types of plugins -->
158
- <xsl:template match="solr/solr-info/*" mode="sub-header" priority="-10">
159
- <h2><xsl:value-of select="local-name()"/></h2>
160
- </xsl:template>
161
-
162
- <xsl:template match="solr/solr-info/OTHER" mode="sub-header">
163
- <a name="other"><h2>Other</h2></a>
164
- </xsl:template>
165
-
166
- <xsl:template match="solr/solr-info/*/entry">
167
- <tr>
168
- <td align="right">
169
- <strong>name:&#xa0;</strong>
170
- </td>
171
- <td>
172
- <tt><xsl:value-of select="name"/>&#xa0;</tt>
173
- </td>
174
- </tr>
175
- <tr>
176
- <td align="right">
177
- <strong>class:&#xa0;</strong>
178
- </td>
179
- <td>
180
- <tt><xsl:value-of select="class"/>&#xa0;</tt>
181
- </td>
182
- </tr>
183
- <tr>
184
- <td align="right">
185
- <strong>version:&#xa0;</strong>
186
- </td>
187
- <td>
188
- <tt><xsl:value-of select="version"/>&#xa0;</tt>
189
- </td>
190
- </tr>
191
- <tr>
192
- <td align="right">
193
- <strong>description:&#xa0;</strong>
194
- </td>
195
- <td>
196
- <tt><xsl:value-of select="description"/>&#xa0;</tt>
197
- </td>
198
- </tr>
199
- <tr>
200
- <td align="right">
201
- <strong>stats:&#xa0;</strong>
202
- </td>
203
- <td>
204
- <xsl:for-each select="stats/stat[@name]">
205
- <xsl:value-of select="@name"/>
206
- <xsl:text> : </xsl:text>
207
- <xsl:variable name="name" select="@name" />
208
- <xsl:value-of select="." /><br />
209
- </xsl:for-each>
210
- </td>
211
- </tr>
212
- <tr>
213
- <td align="right">
214
- </td>
215
- <td>
216
- </td>
217
- </tr>
218
- </xsl:template>
219
-
220
- </xsl:stylesheet>