sunspot_solr 2.2.2 → 2.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (256) hide show
  1. checksums.yaml +4 -4
  2. data/bin/sunspot-solr +2 -6
  3. data/lib/sunspot/solr/server.rb +2 -3
  4. data/solr/README.txt +181 -181
  5. data/solr/bin/post +29 -19
  6. data/solr/bin/solr +247 -428
  7. data/solr/bin/solr.cmd +102 -256
  8. data/solr/bin/solr.in.cmd +15 -7
  9. data/solr/bin/solr.in.sh +26 -12
  10. data/solr/server/README.txt +110 -113
  11. data/solr/server/contexts/solr-jetty-context.xml +8 -8
  12. data/solr/server/etc/jetty-http.xml +47 -0
  13. data/solr/server/etc/jetty-https-ssl.xml +175 -159
  14. data/solr/server/etc/jetty-https.xml +53 -0
  15. data/solr/server/etc/jetty-ssl.xml +46 -0
  16. data/solr/server/etc/jetty.xml +189 -167
  17. data/solr/server/etc/webdefault.xml +527 -527
  18. data/solr/server/lib/javax.servlet-api-3.1.0.jar +0 -0
  19. data/solr/server/lib/jetty-continuation-9.2.11.v20150529.jar +0 -0
  20. data/solr/server/lib/jetty-deploy-9.2.11.v20150529.jar +0 -0
  21. data/solr/server/lib/jetty-http-9.2.11.v20150529.jar +0 -0
  22. data/solr/server/lib/jetty-io-9.2.11.v20150529.jar +0 -0
  23. data/solr/server/lib/jetty-jmx-9.2.11.v20150529.jar +0 -0
  24. data/solr/server/lib/jetty-rewrite-9.2.11.v20150529.jar +0 -0
  25. data/solr/server/lib/jetty-security-9.2.11.v20150529.jar +0 -0
  26. data/solr/server/lib/jetty-server-9.2.11.v20150529.jar +0 -0
  27. data/solr/server/lib/jetty-servlet-9.2.11.v20150529.jar +0 -0
  28. data/solr/server/lib/jetty-servlets-9.2.11.v20150529.jar +0 -0
  29. data/solr/server/lib/jetty-util-9.2.11.v20150529.jar +0 -0
  30. data/solr/server/lib/jetty-webapp-9.2.11.v20150529.jar +0 -0
  31. data/solr/server/lib/jetty-xml-9.2.11.v20150529.jar +0 -0
  32. data/solr/server/modules/http.mod +9 -0
  33. data/solr/server/modules/https.mod +9 -0
  34. data/solr/server/modules/server.mod +11 -0
  35. data/solr/server/modules/ssl.mod +9 -0
  36. data/solr/server/resources/jetty-logging.properties +1 -0
  37. data/solr/server/resources/log4j.properties +24 -24
  38. data/solr/server/solr-webapp/webapp/WEB-INF/lib/commons-exec-1.3.jar +0 -0
  39. data/solr/server/solr-webapp/webapp/WEB-INF/lib/{hadoop-annotations-2.3.0.jar → hadoop-annotations-2.6.0.jar} +0 -0
  40. data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-auth-2.6.0.jar +0 -0
  41. data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-common-2.6.0.jar +0 -0
  42. data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-hdfs-2.6.0.jar +0 -0
  43. data/solr/server/solr-webapp/webapp/WEB-INF/lib/htrace-core-3.0.4.jar +0 -0
  44. data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpclient-4.4.1.jar +0 -0
  45. data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpcore-4.4.1.jar +0 -0
  46. data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpmime-4.4.1.jar +0 -0
  47. data/solr/server/solr-webapp/webapp/WEB-INF/lib/jackson-core-2.5.4.jar +0 -0
  48. data/solr/server/solr-webapp/webapp/WEB-INF/lib/jackson-dataformat-smile-2.5.4.jar +0 -0
  49. data/solr/server/solr-webapp/webapp/WEB-INF/lib/{lucene-analyzers-common-5.0.0.jar → lucene-analyzers-common-5.3.1.jar} +0 -0
  50. data/solr/server/solr-webapp/webapp/WEB-INF/lib/{lucene-analyzers-kuromoji-5.0.0.jar → lucene-analyzers-kuromoji-5.3.1.jar} +0 -0
  51. data/solr/server/solr-webapp/webapp/WEB-INF/lib/{lucene-analyzers-phonetic-5.0.0.jar → lucene-analyzers-phonetic-5.3.1.jar} +0 -0
  52. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-backward-codecs-5.3.1.jar +0 -0
  53. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-codecs-5.3.1.jar +0 -0
  54. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-core-5.3.1.jar +0 -0
  55. data/solr/server/solr-webapp/webapp/WEB-INF/lib/{lucene-expressions-5.0.0.jar → lucene-expressions-5.3.1.jar} +0 -0
  56. data/solr/server/solr-webapp/webapp/WEB-INF/lib/{lucene-grouping-5.0.0.jar → lucene-grouping-5.3.1.jar} +0 -0
  57. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-highlighter-5.3.1.jar +0 -0
  58. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-join-5.3.1.jar +0 -0
  59. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-memory-5.3.1.jar +0 -0
  60. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-misc-5.3.1.jar +0 -0
  61. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-queries-5.3.1.jar +0 -0
  62. data/solr/server/solr-webapp/webapp/WEB-INF/lib/{lucene-queryparser-5.0.0.jar → lucene-queryparser-5.3.1.jar} +0 -0
  63. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-sandbox-5.3.1.jar +0 -0
  64. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-spatial-5.3.1.jar +0 -0
  65. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-suggest-5.3.1.jar +0 -0
  66. data/solr/server/solr-webapp/webapp/WEB-INF/lib/org.restlet-2.3.0.jar +0 -0
  67. data/solr/server/solr-webapp/webapp/WEB-INF/lib/org.restlet.ext.servlet-2.3.0.jar +0 -0
  68. data/solr/server/solr-webapp/webapp/WEB-INF/lib/solr-core-5.3.1.jar +0 -0
  69. data/solr/server/solr-webapp/webapp/WEB-INF/lib/solr-solrj-5.3.1.jar +0 -0
  70. data/solr/server/solr-webapp/webapp/WEB-INF/lib/t-digest-3.1.jar +0 -0
  71. data/solr/server/solr-webapp/webapp/WEB-INF/web.xml +169 -181
  72. data/solr/server/solr-webapp/webapp/WEB-INF/weblogic.xml +28 -28
  73. data/solr/server/solr-webapp/webapp/admin.html +164 -163
  74. data/solr/server/solr-webapp/webapp/css/angular/analysis.css +304 -0
  75. data/solr/server/solr-webapp/webapp/css/angular/chosen.css +465 -0
  76. data/solr/server/solr-webapp/webapp/css/angular/cloud.css +398 -0
  77. data/solr/server/solr-webapp/webapp/css/angular/common.css +724 -0
  78. data/solr/server/solr-webapp/webapp/css/angular/cores.css +233 -0
  79. data/solr/server/solr-webapp/webapp/css/angular/dataimport.css +370 -0
  80. data/solr/server/solr-webapp/webapp/css/angular/documents.css +179 -0
  81. data/solr/server/solr-webapp/webapp/css/angular/files.css +53 -0
  82. data/solr/server/solr-webapp/webapp/css/angular/index.css +206 -0
  83. data/solr/server/solr-webapp/webapp/css/angular/logging.css +376 -0
  84. data/solr/server/solr-webapp/webapp/css/angular/menu.css +321 -0
  85. data/solr/server/solr-webapp/webapp/css/angular/plugins.css +212 -0
  86. data/solr/server/solr-webapp/webapp/css/angular/query.css +162 -0
  87. data/solr/server/solr-webapp/webapp/css/angular/replication.css +500 -0
  88. data/solr/server/solr-webapp/webapp/css/angular/schema-browser.css +567 -0
  89. data/solr/server/solr-webapp/webapp/css/angular/segments.css +173 -0
  90. data/solr/server/solr-webapp/webapp/css/angular/threads.css +161 -0
  91. data/solr/server/solr-webapp/webapp/css/chosen.css +421 -421
  92. data/solr/server/solr-webapp/webapp/css/styles/analysis.css +311 -311
  93. data/solr/server/solr-webapp/webapp/css/styles/cloud.css +410 -410
  94. data/solr/server/solr-webapp/webapp/css/styles/common.css +701 -701
  95. data/solr/server/solr-webapp/webapp/css/styles/cores.css +244 -244
  96. data/solr/server/solr-webapp/webapp/css/styles/dashboard.css +155 -155
  97. data/solr/server/solr-webapp/webapp/css/styles/dataimport.css +403 -403
  98. data/solr/server/solr-webapp/webapp/css/styles/documents.css +197 -197
  99. data/solr/server/solr-webapp/webapp/css/styles/files.css +54 -54
  100. data/solr/server/solr-webapp/webapp/css/styles/index.css +207 -207
  101. data/solr/server/solr-webapp/webapp/css/styles/java-properties.css +52 -52
  102. data/solr/server/solr-webapp/webapp/css/styles/logging.css +391 -391
  103. data/solr/server/solr-webapp/webapp/css/styles/menu.css +329 -328
  104. data/solr/server/solr-webapp/webapp/css/styles/plugins.css +195 -195
  105. data/solr/server/solr-webapp/webapp/css/styles/query.css +173 -173
  106. data/solr/server/solr-webapp/webapp/css/styles/replication.css +515 -515
  107. data/solr/server/solr-webapp/webapp/css/styles/schema-browser.css +578 -578
  108. data/solr/server/solr-webapp/webapp/css/styles/segments.css +145 -0
  109. data/solr/server/solr-webapp/webapp/css/styles/threads.css +172 -172
  110. data/solr/server/solr-webapp/webapp/img/chosen-sprite-2x.png +0 -0
  111. data/solr/server/solr-webapp/webapp/img/filetypes/README +27 -27
  112. data/solr/server/solr-webapp/webapp/img/solr.svg +39 -39
  113. data/solr/server/solr-webapp/webapp/index.html +208 -0
  114. data/solr/server/solr-webapp/webapp/js/angular/app.js +713 -0
  115. data/solr/server/solr-webapp/webapp/js/angular/controllers/analysis.js +199 -0
  116. data/solr/server/solr-webapp/webapp/js/angular/controllers/cloud.js +528 -0
  117. data/solr/server/solr-webapp/webapp/js/angular/controllers/core-overview.js +225 -0
  118. data/solr/server/solr-webapp/webapp/js/angular/controllers/cores.js +465 -0
  119. data/solr/server/solr-webapp/webapp/js/angular/controllers/dataimport.js +284 -0
  120. data/solr/server/solr-webapp/webapp/js/angular/controllers/documents.js +139 -0
  121. data/solr/server/solr-webapp/webapp/js/angular/controllers/files.js +92 -0
  122. data/solr/server/solr-webapp/webapp/js/angular/controllers/index.js +95 -0
  123. data/solr/server/solr-webapp/webapp/js/angular/controllers/java-properties.js +45 -0
  124. data/solr/server/solr-webapp/webapp/js/angular/controllers/logging.js +146 -0
  125. data/solr/server/solr-webapp/webapp/js/angular/controllers/plugins.js +166 -0
  126. data/solr/server/solr-webapp/webapp/js/angular/controllers/query.js +99 -0
  127. data/solr/server/solr-webapp/webapp/js/angular/controllers/replication.js +227 -0
  128. data/solr/server/solr-webapp/webapp/js/angular/controllers/schema-browser.js +432 -0
  129. data/solr/server/solr-webapp/webapp/js/angular/controllers/segments.js +94 -0
  130. data/solr/server/solr-webapp/webapp/js/angular/controllers/threads.js +51 -0
  131. data/solr/server/solr-webapp/webapp/js/angular/services.js +214 -0
  132. data/solr/server/solr-webapp/webapp/js/lib/ZeroClipboard.js +342 -342
  133. data/solr/server/solr-webapp/webapp/js/lib/chosen.js +982 -982
  134. data/solr/server/solr-webapp/webapp/js/lib/console.js +29 -29
  135. data/solr/server/solr-webapp/webapp/js/lib/d3.js +9373 -9373
  136. data/solr/server/solr-webapp/webapp/js/lib/highlight.js +31 -31
  137. data/solr/server/solr-webapp/webapp/js/lib/jquery-1.7.2.min.js +30 -30
  138. data/solr/server/solr-webapp/webapp/js/lib/jquery.ajaxfileupload.js +184 -184
  139. data/solr/server/solr-webapp/webapp/js/lib/jquery.blockUI.js +523 -523
  140. data/solr/server/solr-webapp/webapp/js/lib/jquery.cookie.js +71 -71
  141. data/solr/server/solr-webapp/webapp/js/lib/jquery.form.js +806 -806
  142. data/solr/server/solr-webapp/webapp/js/lib/jquery.jstree.js +3534 -3534
  143. data/solr/server/solr-webapp/webapp/js/lib/jquery.sammy.js +1863 -1863
  144. data/solr/server/solr-webapp/webapp/js/lib/jquery.timeago.js +189 -189
  145. data/solr/server/solr-webapp/webapp/js/lib/linker.js +48 -48
  146. data/solr/server/solr-webapp/webapp/js/lib/naturalSort.js +82 -0
  147. data/solr/server/solr-webapp/webapp/js/lib/order.js +216 -216
  148. data/solr/server/solr-webapp/webapp/js/main.js +60 -58
  149. data/solr/server/solr-webapp/webapp/js/require.js +11349 -11349
  150. data/solr/server/solr-webapp/webapp/js/scripts/analysis.js +545 -545
  151. data/solr/server/solr-webapp/webapp/js/scripts/app.js +680 -679
  152. data/solr/server/solr-webapp/webapp/js/scripts/cloud.js +877 -877
  153. data/solr/server/solr-webapp/webapp/js/scripts/cores.js +719 -719
  154. data/solr/server/solr-webapp/webapp/js/scripts/dashboard.js +562 -562
  155. data/solr/server/solr-webapp/webapp/js/scripts/dataimport.js +812 -812
  156. data/solr/server/solr-webapp/webapp/js/scripts/documents.js +370 -370
  157. data/solr/server/solr-webapp/webapp/js/scripts/files.js +265 -265
  158. data/solr/server/solr-webapp/webapp/js/scripts/index.js +340 -340
  159. data/solr/server/solr-webapp/webapp/js/scripts/java-properties.js +106 -106
  160. data/solr/server/solr-webapp/webapp/js/scripts/logging.js +578 -576
  161. data/solr/server/solr-webapp/webapp/js/scripts/ping.js +72 -72
  162. data/solr/server/solr-webapp/webapp/js/scripts/plugins.js +462 -462
  163. data/solr/server/solr-webapp/webapp/js/scripts/query.js +229 -229
  164. data/solr/server/solr-webapp/webapp/js/scripts/replication.js +527 -527
  165. data/solr/server/solr-webapp/webapp/js/scripts/schema-browser.js +1229 -1229
  166. data/solr/server/solr-webapp/webapp/js/scripts/segments.js +206 -0
  167. data/solr/server/solr-webapp/webapp/js/scripts/threads.js +158 -158
  168. data/solr/server/solr-webapp/webapp/libs/angular-chosen.js +139 -0
  169. data/solr/server/solr-webapp/webapp/libs/angular-cookies.js +229 -0
  170. data/solr/server/solr-webapp/webapp/libs/angular-cookies.min.js +31 -0
  171. data/solr/server/solr-webapp/webapp/libs/angular-resource.min.js +36 -0
  172. data/solr/server/solr-webapp/webapp/libs/angular-route.js +1018 -0
  173. data/solr/server/solr-webapp/webapp/libs/angular-route.min.js +38 -0
  174. data/solr/server/solr-webapp/webapp/libs/angular-sanitize.js +703 -0
  175. data/solr/server/solr-webapp/webapp/libs/angular-sanitize.min.js +39 -0
  176. data/solr/server/solr-webapp/webapp/libs/angular.js +26093 -0
  177. data/solr/server/solr-webapp/webapp/libs/angular.min.js +273 -0
  178. data/solr/server/solr-webapp/webapp/libs/chosen.jquery.js +1194 -0
  179. data/solr/server/solr-webapp/webapp/libs/chosen.jquery.min.js +30 -0
  180. data/solr/server/solr-webapp/webapp/libs/d3.js +9373 -0
  181. data/solr/server/solr-webapp/webapp/libs/highlight.js +31 -0
  182. data/solr/server/solr-webapp/webapp/libs/jquery-2.1.3.min.js +29 -0
  183. data/solr/server/solr-webapp/webapp/libs/jquery.jstree.js +3534 -0
  184. data/solr/server/solr-webapp/webapp/libs/ngtimeago.js +102 -0
  185. data/solr/server/solr-webapp/webapp/partials/analysis.html +128 -0
  186. data/solr/server/solr-webapp/webapp/partials/cloud.html +104 -0
  187. data/solr/server/solr-webapp/webapp/partials/core_overview.html +227 -0
  188. data/solr/server/solr-webapp/webapp/partials/cores.html +231 -0
  189. data/solr/server/solr-webapp/webapp/partials/dataimport.html +209 -0
  190. data/solr/server/solr-webapp/webapp/partials/documents.html +118 -0
  191. data/solr/server/solr-webapp/webapp/partials/files.html +47 -0
  192. data/solr/server/solr-webapp/webapp/partials/index.html +261 -0
  193. data/solr/server/solr-webapp/webapp/partials/java-properties.html +27 -0
  194. data/solr/server/solr-webapp/webapp/partials/logging-levels.html +56 -0
  195. data/solr/server/solr-webapp/webapp/partials/logging.html +56 -0
  196. data/solr/server/solr-webapp/webapp/partials/plugins.html +72 -0
  197. data/solr/server/solr-webapp/webapp/partials/query.html +356 -0
  198. data/solr/server/solr-webapp/webapp/partials/replication.html +239 -0
  199. data/solr/server/solr-webapp/webapp/partials/schema-browser.html +206 -0
  200. data/solr/server/solr-webapp/webapp/partials/segments.html +99 -0
  201. data/solr/server/solr-webapp/webapp/partials/threads.html +65 -0
  202. data/solr/server/solr-webapp/webapp/tpl/analysis.html +83 -83
  203. data/solr/server/solr-webapp/webapp/tpl/cloud.html +87 -87
  204. data/solr/server/solr-webapp/webapp/tpl/cores.html +226 -226
  205. data/solr/server/solr-webapp/webapp/tpl/dashboard.html +201 -201
  206. data/solr/server/solr-webapp/webapp/tpl/dataimport.html +183 -183
  207. data/solr/server/solr-webapp/webapp/tpl/documents.html +107 -107
  208. data/solr/server/solr-webapp/webapp/tpl/files.html +44 -44
  209. data/solr/server/solr-webapp/webapp/tpl/index.html +250 -250
  210. data/solr/server/solr-webapp/webapp/tpl/logging.html +23 -23
  211. data/solr/server/solr-webapp/webapp/tpl/plugins.html +39 -39
  212. data/solr/server/solr-webapp/webapp/tpl/query.html +361 -361
  213. data/solr/server/solr-webapp/webapp/tpl/replication.html +216 -216
  214. data/solr/server/solr-webapp/webapp/tpl/schema-browser.html +192 -192
  215. data/solr/server/solr-webapp/webapp/tpl/segments.html +49 -0
  216. data/solr/server/solr-webapp/webapp/tpl/threads.html +56 -56
  217. data/solr/server/solr/README.txt +77 -77
  218. data/solr/server/solr/solr.xml +51 -51
  219. data/solr/server/solr/zoo.cfg +17 -17
  220. data/solr/server/start.jar +0 -0
  221. data/spec/server_spec.rb +3 -8
  222. metadata +132 -43
  223. data/solr/server/lib/jetty-continuation-8.1.10.v20130312.jar +0 -0
  224. data/solr/server/lib/jetty-deploy-8.1.10.v20130312.jar +0 -0
  225. data/solr/server/lib/jetty-http-8.1.10.v20130312.jar +0 -0
  226. data/solr/server/lib/jetty-io-8.1.10.v20130312.jar +0 -0
  227. data/solr/server/lib/jetty-jmx-8.1.10.v20130312.jar +0 -0
  228. data/solr/server/lib/jetty-security-8.1.10.v20130312.jar +0 -0
  229. data/solr/server/lib/jetty-server-8.1.10.v20130312.jar +0 -0
  230. data/solr/server/lib/jetty-servlet-8.1.10.v20130312.jar +0 -0
  231. data/solr/server/lib/jetty-util-8.1.10.v20130312.jar +0 -0
  232. data/solr/server/lib/jetty-webapp-8.1.10.v20130312.jar +0 -0
  233. data/solr/server/lib/jetty-xml-8.1.10.v20130312.jar +0 -0
  234. data/solr/server/lib/servlet-api-3.0.jar +0 -0
  235. data/solr/server/solr-webapp/webapp/.gitignore +0 -1
  236. data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-auth-2.3.0.jar +0 -0
  237. data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-common-2.3.0.jar +0 -0
  238. data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-hdfs-2.3.0.jar +0 -0
  239. data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpclient-4.3.1.jar +0 -0
  240. data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpcore-4.3.jar +0 -0
  241. data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpmime-4.3.1.jar +0 -0
  242. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-backward-codecs-5.0.0.jar +0 -0
  243. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-codecs-5.0.0.jar +0 -0
  244. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-core-5.0.0.jar +0 -0
  245. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-highlighter-5.0.0.jar +0 -0
  246. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-join-5.0.0.jar +0 -0
  247. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-memory-5.0.0.jar +0 -0
  248. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-misc-5.0.0.jar +0 -0
  249. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-queries-5.0.0.jar +0 -0
  250. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-spatial-5.0.0.jar +0 -0
  251. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-suggest-5.0.0.jar +0 -0
  252. data/solr/server/solr-webapp/webapp/WEB-INF/lib/org.restlet-2.1.1.jar +0 -0
  253. data/solr/server/solr-webapp/webapp/WEB-INF/lib/org.restlet.ext.servlet-2.1.1.jar +0 -0
  254. data/solr/server/solr-webapp/webapp/WEB-INF/lib/solr-core-5.0.0.jar +0 -0
  255. data/solr/server/solr-webapp/webapp/WEB-INF/lib/solr-solrj-5.0.0.jar +0 -0
  256. data/solr/server/webapps/solr.war +0 -0
@@ -0,0 +1,231 @@
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
+ <div id="cores" class="clearfix empty">
18
+
19
+ <div id="ui-block" style="display:none">&nbsp;</div><!-- @todo what is this for? -->
20
+
21
+ <div id="frame">
22
+
23
+ <div id="actions" class="actions clearfix">
24
+
25
+ <button id="add" class="action" ng-click="showAddCore()"><span>Add Core</span></button>
26
+ <span ng-show="hasCores">
27
+ <button id="unload" class="warn requires-core" ng-click="unloadCore()"><span>Unload</span></button>
28
+ <button id="rename" class="action requires-core" ng-click="showRenameCore()"><span>Rename</span></button>
29
+ <button id="swap" class="action requires-core" ng-click="showSwapCores()"><span>Swap</span></button>
30
+ <button id="reload" class="requires-core" ng-click="reloadCore()"
31
+ ng-class="{success: reloadSuccess, warn: reloadFailure}"><span>Reload</span></button>
32
+ <button id="optimize" class="requires-core" ng-click="optimizeCore()" ng-show="core.index.hasDeletions || optimizeSuccess"
33
+ ng-class="{success: optimizeSuccess, warn: optimizeFailure}"><span>Optimize</span></button>
34
+ </span>
35
+ <div class="action add" data-rel="add" ng-show="showAdd" style="display:block;left:0px;">
36
+
37
+ <form>
38
+
39
+ <p class="clearfix"><label for="add_name">name:</label>
40
+ <input type="text" name="name" id="add_name" ng-model="newCore.name"></p>
41
+
42
+ <p class="clearfix"><label for="add_instanceDir">instanceDir:</label>
43
+ <input type="text" name="instanceDir" id="add_instanceDir" ng-model="newCore.instanceDir"></p>
44
+
45
+ <p class="clearfix"><label for="add_dataDir">dataDir:</label>
46
+ <input type="text" name="dataDir" id="add_dataDir" ng-model="newCore.dataDir"></p>
47
+
48
+ <p class="clearfix"><label for="add_config">config:</label>
49
+ <input type="text" name="config" id="add_config" ng-model="newCore.config"></p>
50
+
51
+ <p class="clearfix"><label for="add_schema">schema:</label>
52
+ <input type="text" name="schema" id="add_schema" ng-model="newCore.schema"></p>
53
+
54
+ <div class="cloud" ng-show="isCloud">
55
+
56
+ <p class="clearfix"><label for="add_collection">collection:</label>
57
+ <input type="text" name="collection" id="add_collection" ng-model="newCore.collection"></p>
58
+
59
+ <p class="clearfix"><label for="add_shard">shard:</label>
60
+ <input type="text" name="add_shard" id="add_shard" ng-model="newCore.shard"></p>
61
+
62
+ </div>
63
+
64
+ <p class="clearfix note directory-note">
65
+
66
+ <span><code>instanceDir</code> and <code>dataDir</code> need to exist before you can create the core</span>
67
+
68
+ </p>
69
+
70
+ <p class="clearfix note error" ng-show="addMessage">
71
+ <span>{{addMessage}}</span>
72
+ </p>
73
+
74
+ <p class="clearfix buttons">
75
+ <button type="submit" class="submit" ng-click="addCore()"><span>Add Core</span></button>
76
+ <button type="reset" class="reset" ng-click="cancelAddCore()"><span>Cancel</span></button>
77
+ </p>
78
+
79
+ </form>
80
+
81
+ </div>
82
+
83
+ <div class="action rename" ng-show="showRename">
84
+
85
+ <form>
86
+
87
+ <input type="hidden" name="core" data-core="current">
88
+
89
+ <p class="clearfix"><label for="rename_other">New Name:</label>
90
+ <input type="text" name="other" ng-model="other" id="rename_other"></p>
91
+
92
+ <p class="clearfix note error" ng-show="renameMessage">
93
+ <span>{{renameMessage}}</span>
94
+ </p>
95
+
96
+ <p class="clearfix buttons">
97
+ <button class="submit" ng-click="renameCore()"><span>Rename Core</span></button>
98
+ <button type="reset" class="reset" ng-click="cancelRenameCore()"><span>Cancel</span></button>
99
+ </p>
100
+ </form>
101
+
102
+ </div>
103
+
104
+ <div class="action swap" ng-show="showSwap">
105
+
106
+ <form>
107
+
108
+ <p class="clearfix"><label for="swap_core">this:</label>
109
+ <input type="text" id="swap_core" name="core" ng-model="currentCore" readonly="readonly"></p>
110
+
111
+ <p class="clearfix"><label for="swap_other">and:</label>
112
+ <select name="other" ng-model="swapOther" ng-options="core.name as core.name for core in cores" class="other">
113
+ </select></p>
114
+
115
+ <p class="clearfix note error" ng-show="swapMessage">
116
+ <span>{{swapMessage}}</span>
117
+ </p>
118
+
119
+ <p class="clearfix buttons">
120
+ <button type="submit" class="submit" ng-click="swapCores()"><span>Swap Cores</span></button>
121
+ <button type="reset" class="reset" ng-click="cancelSwapCores()"><span>Cancel</span></button>
122
+ </p>
123
+
124
+ </form>
125
+
126
+ </div>
127
+
128
+ </div>
129
+
130
+ <div id="data" class="requires-core" ng-show="hasCores">
131
+
132
+ <div class="block" id="core-data">
133
+
134
+ <h2><span>Core</span></h2>
135
+
136
+ <div class="message-container">
137
+ <div class="message"></div>
138
+ </div>
139
+
140
+ <div class="content">
141
+
142
+ <ul>
143
+
144
+ <li class="startTime"><dl class="clearfix">
145
+ <dt><span>startTime:</span></dt>
146
+ <dd class="timeago">{{core.startTime | timeago}}</dd>
147
+ </dl></li>
148
+
149
+ <li class="instanceDir"><dl class="clearfix">
150
+ <dt><span>instanceDir:</span></dt>
151
+ <dd>{{core.instanceDir}}</dd>
152
+ </dl></li>
153
+
154
+ <li class="dataDir"><dl class="clearfix">
155
+ <dt><span>dataDir:</span></dt>
156
+ <dd>{{core.dataDir}}</dd>
157
+ </dl></li>
158
+
159
+ </ul>
160
+
161
+ </div>
162
+ </div>
163
+
164
+ <div class="block" id="index-data" ng-show="hasCores">
165
+
166
+ <h2><span>Index</span></h2>
167
+
168
+ <div class="message-container">
169
+ <div class="message">{{core.message}}</div>
170
+ </div>
171
+
172
+ <div class="content">
173
+
174
+ <ul>
175
+
176
+ <li class="lastModified"><dl class="clearfix">
177
+ <dt><span>lastModified:</span></dt>
178
+ <dd class="timeago">{{core.index.lastModified | timeago}}</dd>
179
+ </dl></li>
180
+
181
+ <li class="version"><dl class="clearfix">
182
+ <dt><span>version:</span></dt>
183
+ <dd>{{core.index.version}}</dd>
184
+ </dl></li>
185
+
186
+ <li class="numDocs"><dl class="clearfix">
187
+ <dt><span>numDocs:</span></dt>
188
+ <dd>{{core.index.numDocs}}</dd>
189
+ </dl></li>
190
+
191
+ <li class="maxDoc"><dl class="clearfix">
192
+ <dt><span>maxDoc:</span></dt>
193
+ <dd>{{core.index.maxDoc}}</dd>
194
+ </dl></li>
195
+
196
+ <li class="deletedDocs"><dl class="clearfix">
197
+ <dt><span>deletedDocs:</span></dt>
198
+ <dd>{{core.index.deletedDocs}}</dd>
199
+ </dl></li>
200
+
201
+ <li class="optimized"><dl class="clearfix">
202
+ <dt><span>optimized:</span></dt>
203
+ <dd class="ico" ng-class="core.index.hasDeletions ? 'ico-0' : 'ico-1'"><span></span></dd>
204
+ </dl></li>
205
+
206
+ <li class="current"><dl class="clearfix">
207
+ <dt><span>current:</span></dt>
208
+ <dd class="ico" ng-class="core.index.current ?'ico-1' : 'ico-0'"><span></span></dd>
209
+ </dl></li>
210
+
211
+ <li class="directory"><dl class="clearfix">
212
+ <dt><span>directory:</span></dt>
213
+ <dd>{{core.index.directory}}</dd>
214
+ </dl></li>
215
+
216
+ </ul>
217
+
218
+ </div>
219
+ </div>
220
+
221
+ </div>
222
+
223
+ </div>
224
+
225
+ <div id="navigation" class="requires-core clearfix" ng-show="hasCores">
226
+ <ul>
227
+ <li ng-repeat="c in cores" ng-class="{current: core.name == c.name}"><a href="#~cores/{{c.name}}">{{c.name}}</a></li>
228
+ </ul>
229
+ </div>
230
+
231
+ </div>
@@ -0,0 +1,209 @@
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
+ <div id="dataimport" class="clearfix">
18
+
19
+ <div ng-show="!hasHandlers">Sorry, no dataimport-handler defined!</div>
20
+ <div id="frame" ng-show="hasHandlers">
21
+
22
+ <div id="error" ng-show="error"></div>
23
+
24
+ <div id="current_state" class="{{status}}">
25
+
26
+ <p class="last_update">Last Update: <abbr title="{{lastUpdateUTC}}">{{lastUpdate}}</abbr></p>
27
+ <div class="info">
28
+
29
+ <strong>{{info.text}}<span ng-show="info.timeTaken"> (Duration: {{info.timeTaken | readableSeconds }})</span>
30
+ </strong>
31
+ <div class="details" ng-show="info.showDetails">
32
+ <div class="docs">
33
+ <span ng-repeat="doc in info.docs">
34
+ <abbr style="display:inline" title="{{ doc.desc }}">{{ doc.name }}</abbr>: {{doc.value | number}}<!-- remove whitespace!
35
+ --><span style="display:inline" ng-show="doc.speed">{{ doc.speed | number}}/s</span><!-- remove whitespace!
36
+ --><span style="display:inline" ng-show="!$last">, </span>
37
+ </span>
38
+ </div>
39
+ <div class="dates">
40
+ <span ng-repeat="date in info.dates">
41
+ <abbr title="{{ date.desc }}">{{ date.name }}</abbr>:
42
+ <abbr class="time">{{ date.value | timeago }}</abbr>
43
+ </span>
44
+ </div>
45
+ </div>
46
+
47
+ <button class="abort-import" ng-class="{warn:!isAborting, success: isAborting}" ng-click="abort()" ng-show="isRunning">
48
+ <span ng-show="isAborting">Aborting Import</span>
49
+ <span ng-show="!isAborting">Abort Import</span>
50
+ </button>
51
+
52
+ </div>
53
+
54
+ </div>
55
+
56
+ <div class="block" id="raw_output" >
57
+
58
+ <h2>
59
+ <a class="toggle" ng-click="toggleRawStatus()"><span>Raw Status-Output</span></a>
60
+ </h2>
61
+
62
+ <div class="message-container" ng-show="showRawStatus">
63
+ <div class="message"></div>
64
+ </div>
65
+
66
+ <div class="content" ng-show="showRawStatus">
67
+
68
+ <div id="raw_output_container"><pre class="syntax language-json"><code ng-bind-html="rawStatus | highlight:'json' | unsafe"></code></pre></div>
69
+
70
+ </div>
71
+
72
+ </div>
73
+
74
+ <div class="block" id="config" ng-class="{debug_mode:isDebugMode}">
75
+
76
+ <h2 class="clearfix">
77
+ <a class="toggle" ng-click="toggleConfiguration()"><span>Configuration</span></a>
78
+ <a class="r reload_config" ng-class="{success:reloaded}" ng-click="reload()" title="Reload Configuration">Reload</a>
79
+ <a class="r debug_mode" ng-click="toggleDebug()">Debug-Mode</a>
80
+ </h2>
81
+
82
+ <div class="message-container" ng-show="showConfiguration">
83
+ <div class="message"></div>
84
+ </div>
85
+
86
+ <div class="content" ng-show="showConfiguration">
87
+ <div id="dataimport_config">
88
+
89
+ <div class="formatted" ng-show="!isDebugMode">
90
+
91
+ <pre class="syntax language-xml"><code ng-bind-html="config | highlight:'xml'| unsafe"></code></pre>
92
+
93
+ </div>
94
+
95
+ <div class="editable" ng-show="isDebugMode">
96
+
97
+ <textarea>{{config}}</textarea>
98
+
99
+ </div>
100
+
101
+ </div>
102
+
103
+ </div>
104
+
105
+ </div>
106
+
107
+ <div class="block" id="debug_response" ng-show="form.showDebug">
108
+
109
+ <h2>
110
+ <a class="toggle" ng-click="toggleRawDebug()"><span>Raw Debug-Response</span></a>
111
+ </h2>
112
+
113
+ <div class="message-container" ng-show="showRawDebug">
114
+ <div class="message"></div>
115
+ </div>
116
+
117
+ <div class="content" ng-show="showRawDebug">
118
+ <span ng-show="true">
119
+ <em>No Request executed</em>
120
+ </span>
121
+ <span ng-show="false">
122
+ <pre class="syntax language-json"><code ng-bind-html="rawResponse | highlight:'xml' | unsafe"></code></pre>
123
+ </span>
124
+ </div>
125
+
126
+ </div>
127
+
128
+ </div>
129
+
130
+ <div id="form" ng-show="hasHandlers">
131
+
132
+ <div id="navigation">
133
+
134
+ <ul>
135
+ <li ng-class="{current: currentHandler == handler}" ng-repeat="handler in handlers">
136
+ <a href="#/{{form.core}}/dataimport/{{handler}}">{{handler}}</a>
137
+ </li>
138
+ </ul>
139
+
140
+ </div>
141
+
142
+ <form action="#" method="get">
143
+
144
+ <label for="command">
145
+ <a rel="help">Command</a>
146
+ </label>
147
+ <select name="command" id="command" ng-model="form.command">
148
+ <option>full-import</option>
149
+ <option>delta-import</option>
150
+ </select>
151
+
152
+ <label for="verbose" class="checkbox">
153
+ <input type="checkbox" name="verbose" id="verbose" ng-model="form.verbose">
154
+ Verbose
155
+ </label>
156
+
157
+ <label for="clean" class="checkbox">
158
+ <input type="checkbox" name="clean" id="clean" ng-model="form.clean">
159
+ Clean
160
+ </label>
161
+
162
+ <label for="commit" class="checkbox">
163
+ <input type="checkbox" name="commit" id="commit" ng-model="form.commit">
164
+ Commit
165
+ </label>
166
+
167
+ <label for="optimize" class="checkbox">
168
+ <input type="checkbox" name="optimize" id="optimize" ng-model="form.optimize">
169
+ Optimize
170
+ </label>
171
+
172
+ <label for="debug" class="checkbox">
173
+ <input type="checkbox" name="debug" id="debug" ng-model="form.showDebug">
174
+ Debug
175
+ </label>
176
+
177
+ <label for="entity">
178
+ <a rel="help">Entity</a>
179
+ </label>
180
+ <select ng-model="form.entity" id="entity">
181
+ <option value=""></option>
182
+ <option ng-repeat="entity in entities">{{entity}}</option>
183
+ </select>
184
+
185
+ <label for="start">
186
+ <a rel="help">Start</a>,
187
+ <a rel="help">Rows</a>
188
+ </label>
189
+ <div class="clearfix">
190
+ <input type="text" id="start" placeholder="0" ng-model="form.start">
191
+ <input type="text" id="rows" placeholder="10" ng-model="form.rows">
192
+ </div>
193
+
194
+ <label for="custom_parameters">
195
+ <a rel="help">Custom Parameters</a>
196
+ </label>
197
+ <input type="text" id="custom_parameters" ng-model="form.custom" placeholder="key1=val1&amp;key2=val2">
198
+ </form>
199
+ <button class="execute" type="submit" ng-click="submit()">
200
+ <span ng-show="isDebugMode">Execute with this Configuration →</span>
201
+ <span ng-show="!isDebugMode">Execute</span>
202
+ </button>
203
+ <button class="refresh-status" ng-click="refreshStatus()" ng-class="{loader: isStatusLoading, success: statusUpdated}"><span>Refresh Status</span></button>
204
+
205
+ <p id="auto-refresh-status"><a ng-click="updateAutoRefresh()" ng-class="{on:autorefresh}">Auto-Refresh Status</a></p>
206
+
207
+ </div>
208
+
209
+ </div>
@@ -0,0 +1,118 @@
1
+ <!--
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
+
20
+ <div id="documents" class="clearfix">
21
+ <div id="form">
22
+ <form>
23
+ <label for="qt">
24
+ <a rel="help">Request-Handler (qt)</a>
25
+ </label>
26
+ <input ng-model="handler" type="text" id="qt" value="/update" title="Request handler in solrconfig.xml.">
27
+ <label for="document-type">
28
+ <a rel="help">Document Type</a>
29
+ </label>
30
+
31
+ <div><select ng-model="type" id="document-type" ng-change="changeDocumentType()" placeholder="The type of the document field">
32
+ <!-- TODO: support the Builder -->
33
+ <option value="csv">CSV</option>
34
+ <option value="wizard">Document Builder</option>
35
+ <option value="upload">File Upload</option>
36
+ <option value="json">JSON</option>
37
+ <option value="solr">Solr Command (raw XML or JSON)</option>
38
+ <option value="xml">XML</option>
39
+ </select>
40
+ </div>
41
+ <div id="document-container">
42
+ <div id="wizard" ng-show="type=='wizard'">
43
+ <div id="wizard-fields">
44
+ <div><span class="description">Field</span>: <select ng-model="fieldName" id="wiz-field-select" name="wiz-field-select"
45
+ ng-options="field for field in fields"></select>
46
+ </div>
47
+ <div><span id="wiz-field-data"><span class="description">Field Data</span>:</span>
48
+ <textarea ng-model="fieldData"
49
+ id="wizard-doc"
50
+ name="wizard-doc"
51
+ rows="10"
52
+ cols="40"
53
+ placeholder="Enter your field text here and then click 'Add Field' to add the field to the document.">
54
+ </textarea>
55
+ </div>
56
+ </div>
57
+ <div id="wizard-add"><a ng-click="addWizardField()" id="add-field-href"><img border="0" src="./img/ico/plus-button.png"/>Add
58
+ Field</a></div>
59
+ </div>
60
+ <label for="document">
61
+ <a rel="help">Document(s)</a>
62
+ </label>
63
+ <textarea ng-show="type!='upload'" ng-model="document" name="document" id="document" title="The Document" rows="10"
64
+ cols="70" placeholder="{{placeholder}}"></textarea>
65
+
66
+ <div id="file-upload" ng-show="type=='upload'">
67
+ <input type="file" id="the-file" name="the-file" file-model="fileUpload"/>
68
+ </div>
69
+ </div>
70
+
71
+ <div id="advanced">
72
+ <!-- TODO: only show for JSON/XML-->
73
+ <div id="attribs">
74
+ <div id="upload-only" ng-show="type=='upload'">
75
+ <label for="erh-params"><!-- TODO: cleaner way to do this? -->
76
+ <a rel="help">Extracting Req. Handler Params</a>
77
+ </label>
78
+ <input ng-model="literalParams" type="text" id="erh-params" value="&literal.id=change.me"
79
+ title="Extracting Request Handler Parameters" size="50">
80
+ </div>
81
+ <div id="general-attribs">
82
+ <label for="commitWithin">
83
+ <a rel="help">Commit Within</a>
84
+ </label>
85
+ <input type="text" ng-model="commitWithin" id="commitWithin" value="1000" title="Commit Within (ms)">
86
+ <label for="overwrite">
87
+ <a rel="help">Overwrite</a>
88
+ </label>
89
+ <input ng-model="overwrite" type="text" id="overwrite" value="true" title="Overwrite">
90
+ </div>
91
+ <!-- Boost is json only, since the XML has it embedded -->
92
+ <div id="json-only" ng-show="type=='json'">
93
+ <label for="boost">
94
+ <a rel="help">Boost</a>
95
+ </label>
96
+ <input ng-model="boost" type="text" id="boost" value="1.0" title="Document Boost">
97
+ </div>
98
+ </div>
99
+ </div>
100
+
101
+ <button type="submit" ng-click="submit()" id="submit">Submit Document</button>
102
+ </form>
103
+ </div>
104
+ <div id="result">
105
+ <div id="response" ng-show="response">
106
+ <div>
107
+ <span class="description">Status: </span>{{ responseStatus }}
108
+ </div>
109
+ <div>
110
+ <span class="description">Response:</span>
111
+ <pre class="syntax language-json"><code ng-bind-html="response | highlight:'json' | unsafe"></code></pre>
112
+ </div>
113
+ </div>
114
+
115
+ </div>
116
+ </div>
117
+
118
+