sunspot_solr 2.2.2 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
data/solr/bin/solr.in.cmd CHANGED
@@ -73,8 +73,8 @@ REM set SOLR_OPTS=%SOLR_OPTS% -Dsolr.autoSoftCommit.maxTime=3000
73
73
  REM set SOLR_OPTS=%SOLR_OPTS% -Dsolr.autoCommit.maxTime=60000
74
74
  REM set SOLR_OPTS=%SOLR_OPTS% -Dsolr.clustering.enabled=true
75
75
 
76
- REM Path to a directory where Solr creates index files, the specified directory
77
- REM must contain a solr.xml; by default, Solr will use server/solr
76
+ REM Path to a directory for Solr to store cores and their data. By default, Solr will use server\solr
77
+ REM If solr.xml is not stored in ZooKeeper, this directory needs to contain solr.xml
78
78
  REM set SOLR_HOME=
79
79
 
80
80
  REM Sets the port Solr binds to, default is 8983
@@ -82,8 +82,16 @@ REM set SOLR_PORT=8983
82
82
 
83
83
  REM Uncomment to set SSL-related system properties
84
84
  REM Be sure to update the paths to the correct keystore for your environment
85
- REM set SOLR_SSL_OPTS=-Djavax.net.ssl.keyStore=etc/solr-ssl.keystore.jks -Djavax.net.ssl.keyStorePassword=secret -Djavax.net.ssl.trustStore=etc/solr-ssl.keystore.jks -Djavax.net.ssl.trustStorePassword=secret
86
-
87
- REM Uncomment to set a specific SSL port (-Djetty.ssl.port=N); if not set
88
- REM and you are using SSL, then the start script will use SOLR_PORT for the SSL port
89
- REM set SOLR_SSL_PORT=
85
+ REM set SOLR_SSL_KEY_STORE=etc/solr-ssl.keystore.jks
86
+ REM set SOLR_SSL_KEY_STORE_PASSWORD=secret
87
+ REM set SOLR_SSL_TRUST_STORE=etc/solr-ssl.keystore.jks
88
+ REM set SOLR_SSL_TRUST_STORE_PASSWORD=secret
89
+ REM set SOLR_SSL_NEED_CLIENT_AUTH=false
90
+ REM set SOLR_SSL_WANT_CLIENT_AUTH=false
91
+
92
+ REM Uncomment if you want to override previously defined SSL values for HTTP client
93
+ REM otherwise keep them commented and the above values will automatically be set for HTTP clients
94
+ REM set SOLR_SSL_CLIENT_KEY_STORE=
95
+ REM set SOLR_SSL_CLIENT_KEY_STORE_PASSWORD=
96
+ REM setSOLR_SSL_CLIENT_TRUST_STORE=
97
+ REM setSOLR_SSL_CLIENT_TRUST_STORE_PASSWORD=
data/solr/bin/solr.in.sh CHANGED
@@ -18,8 +18,12 @@
18
18
  # affecting other Java applications on your server/workstation.
19
19
  #SOLR_JAVA_HOME=""
20
20
 
21
- # Increase Java Min/Max Heap as needed to support your indexing / query needs
22
- SOLR_JAVA_MEM="-Xms512m -Xmx512m"
21
+ # Increase Java Heap as needed to support your indexing / query needs
22
+ SOLR_HEAP="512m"
23
+
24
+ # Expert: If you want finer control over memory options, specify them directly
25
+ # Comment out SOLR_HEAP if you are using this though, that takes precedence
26
+ #SOLR_JAVA_MEM="-Xms512m -Xmx512m"
23
27
 
24
28
  # Enable verbose GC logging
25
29
  GC_LOG_OPTS="-verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails \
@@ -75,8 +79,8 @@ ENABLE_REMOTE_JMX_OPTS="false"
75
79
  # If not set, the script will create PID files in $SOLR_TIP/bin
76
80
  #SOLR_PID_DIR=
77
81
 
78
- # Path to a directory where Solr creates index files, the specified directory
79
- # must contain a solr.xml; by default, Solr will use server/solr
82
+ # Path to a directory for Solr to store cores and their data. By default, Solr will use server/solr
83
+ # If solr.xml is not stored in ZooKeeper, this directory needs to contain solr.xml
80
84
  #SOLR_HOME=
81
85
 
82
86
  # Solr provides a default Log4J configuration properties file in server/resources
@@ -93,11 +97,21 @@ ENABLE_REMOTE_JMX_OPTS="false"
93
97
 
94
98
  # Uncomment to set SSL-related system properties
95
99
  # Be sure to update the paths to the correct keystore for your environment
96
- #SOLR_SSL_OPTS="-Djavax.net.ssl.keyStore=etc/solr-ssl.keystore.jks \
97
- #-Djavax.net.ssl.keyStorePassword=secret \
98
- #-Djavax.net.ssl.trustStore=etc/solr-ssl.keystore.jks \
99
- #-Djavax.net.ssl.trustStorePassword=secret"
100
-
101
- # Uncomment to set a specific SSL port (-Djetty.ssl.port=N); if not set
102
- # and you are using SSL, then the start script will use SOLR_PORT for the SSL port
103
- #SOLR_SSL_PORT=
100
+ #SOLR_SSL_KEY_STORE=etc/solr-ssl.keystore.jks
101
+ #SOLR_SSL_KEY_STORE_PASSWORD=secret
102
+ #SOLR_SSL_TRUST_STORE=etc/solr-ssl.keystore.jks
103
+ #SOLR_SSL_TRUST_STORE_PASSWORD=secret
104
+ #SOLR_SSL_NEED_CLIENT_AUTH=false
105
+ #SOLR_SSL_WANT_CLIENT_AUTH=false
106
+
107
+ # Uncomment if you want to override previously defined SSL values for HTTP client
108
+ # otherwise keep them commented and the above values will automatically be set for HTTP clients
109
+ #SOLR_SSL_CLIENT_KEY_STORE=
110
+ #SOLR_SSL_CLIENT_KEY_STORE_PASSWORD=
111
+ #SOLR_SSL_CLIENT_TRUST_STORE=
112
+ #SOLR_SSL_CLIENT_TRUST_STORE_PASSWORD=
113
+
114
+ # Settings for authentication
115
+ #SOLR_AUTHENTICATION_CLIENT_CONFIGURER=
116
+ #SOLR_AUTHENTICATION_OPTS=
117
+
@@ -1,113 +1,110 @@
1
- # Licensed to the Apache Software Foundation (ASF) under one or more
2
- # contributor license agreements. See the NOTICE file distributed with
3
- # this work for additional information regarding copyright ownership.
4
- # The ASF licenses this file to You under the Apache License, Version 2.0
5
- # (the "License"); you may not use this file except in compliance with
6
- # the License. You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- Solr server
17
- ------------
18
-
19
- This directory contains an instance of the Jetty Servlet container setup to
20
- run Solr.
21
-
22
- To run Solr:
23
-
24
- cd $SOLR_INSTALL
25
- bin/solr start
26
-
27
- where $SOLR_INSTALL is the location where you extracted the Solr installation bundle.
28
-
29
- Server directory layout
30
- -----------------------
31
-
32
- server/contexts
33
-
34
- This directory contains the Jetty Web application deployment descriptor for the Solr Web app.
35
-
36
- server/etc
37
-
38
- Jetty configuration and example SSL keystore
39
-
40
- server/lib
41
-
42
- Jetty and other 3rd party libraries
43
-
44
- server/logs
45
-
46
- Solr log files
47
-
48
- server/resources
49
-
50
- Contains configuration files, such as the Log4j configuration (log4j.properties) for configuring Solr loggers.
51
-
52
- server/scripts/cloud-scripts
53
-
54
- Command-line utility for working with ZooKeeper when running in SolrCloud mode, see zkcli.sh / .cmd for
55
- usage information.
56
-
57
- server/solr
58
-
59
- Default solr.solr.home directory where Solr will create core directories; must contain solr.xml
60
-
61
- server/solr/configsets
62
-
63
- Directories containing different configuration options for running Solr.
64
-
65
- basic_configs : Bare minimum configuration settings needed to run Solr.
66
-
67
- data_driven_schema_configs : Field-guessing and managed schema mode; use this configuration if you want
68
- to start indexing data in Solr without having to design a schema upfront.
69
- You can use the REST API to manage your schema as you refine your index
70
- requirements.
71
-
72
- sample_techproducts_configs : Comprehensive example configuration that demonstrates many of the powerful
73
- features of Solr, based on the use case of building a search solution for
74
- tech products.
75
-
76
- server/solr-webapp
77
-
78
- Jetty will extract the solr.war into this directory at runtime.
79
-
80
- server/webapps
81
-
82
- Contains the solr.war file.
83
-
84
-
85
- Notes About Solr Examples
86
- --------------------------
87
-
88
- * SolrHome *
89
-
90
- By default, start.jar starts Solr in Jetty using the default Solr Home
91
- directory of "./solr/" (relative to the working directory of the servlet
92
- container).
93
-
94
- * References to Jar Files Outside This Directory *
95
-
96
- Various example SolrHome dirs contained in this directory may use "<lib>"
97
- statements in the solrconfig.xml file to reference plugin jars outside of
98
- this directory for loading "contrib" plugins via relative paths.
99
-
100
- If you make a copy of this example server and wish to use the
101
- ExtractingRequestHandler (SolrCell), DataImportHandler (DIH), UIMA, the
102
- clustering component, or any other modules in "contrib", you will need to
103
- copy the required jars or update the paths to those jars in your
104
- solrconfig.xml.
105
-
106
- * Logging *
107
-
108
- By default, Jetty & Solr will log to the console a logs/solr.log. This can be convenient when
109
- first getting started, but eventually you will want to log just to a file. To
110
- configure logging, edit the log4j.properties file in "resources".
111
-
112
- It is also possible to setup log4j or other popular logging frameworks.
113
-
1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright ownership.
4
+ # The ASF licenses this file to You under the Apache License, Version 2.0
5
+ # (the "License"); you may not use this file except in compliance with
6
+ # the License. You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ Solr server
17
+ ------------
18
+
19
+ This directory contains an instance of the Jetty Servlet container setup to
20
+ run Solr.
21
+
22
+ To run Solr:
23
+
24
+ cd $SOLR_INSTALL
25
+ bin/solr start
26
+
27
+ where $SOLR_INSTALL is the location where you extracted the Solr installation bundle.
28
+
29
+ Server directory layout
30
+ -----------------------
31
+
32
+ server/contexts
33
+
34
+ This directory contains the Jetty Web application deployment descriptor for the Solr Web app.
35
+
36
+ server/etc
37
+
38
+ Jetty configuration and example SSL keystore
39
+
40
+ server/lib
41
+
42
+ Jetty and other 3rd party libraries
43
+
44
+ server/logs
45
+
46
+ Solr log files
47
+
48
+ server/resources
49
+
50
+ Contains configuration files, such as the Log4j configuration (log4j.properties) for configuring Solr loggers.
51
+
52
+ server/scripts/cloud-scripts
53
+
54
+ Command-line utility for working with ZooKeeper when running in SolrCloud mode, see zkcli.sh / .cmd for
55
+ usage information.
56
+
57
+ server/solr
58
+
59
+ Default solr.solr.home directory where Solr will create core directories; must contain solr.xml
60
+
61
+ server/solr/configsets
62
+
63
+ Directories containing different configuration options for running Solr.
64
+
65
+ basic_configs : Bare minimum configuration settings needed to run Solr.
66
+
67
+ data_driven_schema_configs : Field-guessing and managed schema mode; use this configuration if you want
68
+ to start indexing data in Solr without having to design a schema upfront.
69
+ You can use the REST API to manage your schema as you refine your index
70
+ requirements.
71
+
72
+ sample_techproducts_configs : Comprehensive example configuration that demonstrates many of the powerful
73
+ features of Solr, based on the use case of building a search solution for
74
+ tech products.
75
+
76
+ server/solr-webapp
77
+
78
+ Contains files used by the Solr server; do not edit files in this directory (Solr is not a Java Web application).
79
+
80
+
81
+ Notes About Solr Examples
82
+ --------------------------
83
+
84
+ * SolrHome *
85
+
86
+ By default, start.jar starts Solr in Jetty using the default Solr Home
87
+ directory of "./solr/" (relative to the working directory of the servlet
88
+ container).
89
+
90
+ * References to Jar Files Outside This Directory *
91
+
92
+ Various example SolrHome dirs contained in this directory may use "<lib>"
93
+ statements in the solrconfig.xml file to reference plugin jars outside of
94
+ this directory for loading "contrib" plugins via relative paths.
95
+
96
+ If you make a copy of this example server and wish to use the
97
+ ExtractingRequestHandler (SolrCell), DataImportHandler (DIH), UIMA, the
98
+ clustering component, or any other modules in "contrib", you will need to
99
+ copy the required jars or update the paths to those jars in your
100
+ solrconfig.xml.
101
+
102
+ * Logging *
103
+
104
+ By default, Jetty & Solr will log to the console and logs/solr.log. This can
105
+ be convenient when first getting started, but eventually you will want to
106
+ log just to a file. To configure logging, edit the log4j.properties file in
107
+ "resources".
108
+
109
+ It is also possible to setup log4j or other popular logging frameworks.
110
+
@@ -1,8 +1,8 @@
1
- <?xml version="1.0"?>
2
- <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
3
- <Configure class="org.eclipse.jetty.webapp.WebAppContext">
4
- <Set name="contextPath"><SystemProperty name="hostContext" default="/solr"/></Set>
5
- <Set name="war"><SystemProperty name="jetty.home"/>/webapps/solr.war</Set>
6
- <Set name="defaultsDescriptor"><SystemProperty name="jetty.home"/>/etc/webdefault.xml</Set>
7
- <Set name="tempDirectory"><Property name="jetty.home" default="."/>/solr-webapp</Set>
8
- </Configure>
1
+ <?xml version="1.0"?>
2
+ <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">
3
+ <Configure class="org.eclipse.jetty.webapp.WebAppContext">
4
+ <Set name="contextPath"><Property name="hostContext" default="/solr"/></Set>
5
+ <Set name="war"><Property name="jetty.base"/>/solr-webapp/webapp</Set>
6
+ <Set name="defaultsDescriptor"><Property name="jetty.base"/>/etc/webdefault.xml</Set>
7
+ <Set name="extractWAR">false</Set>
8
+ </Configure>
@@ -0,0 +1,47 @@
1
+ <?xml version="1.0"?>
2
+ <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">
3
+
4
+ <!-- ============================================================= -->
5
+ <!-- Configure the Jetty Server instance with an ID "Server" -->
6
+ <!-- by adding a HTTP connector. -->
7
+ <!-- This configuration must be used in conjunction with jetty.xml -->
8
+ <!-- ============================================================= -->
9
+ <Configure id="Server" class="org.eclipse.jetty.server.Server">
10
+
11
+ <!-- =========================================================== -->
12
+ <!-- Add a HTTP Connector. -->
13
+ <!-- Configure an o.e.j.server.ServerConnector with a single -->
14
+ <!-- HttpConnectionFactory instance using the common httpConfig -->
15
+ <!-- instance defined in jetty.xml -->
16
+ <!-- -->
17
+ <!-- Consult the javadoc of o.e.j.server.ServerConnector and -->
18
+ <!-- o.e.j.server.HttpConnectionFactory for all configuration -->
19
+ <!-- that may be set here. -->
20
+ <!-- =========================================================== -->
21
+ <Call name="addConnector">
22
+ <Arg>
23
+ <New class="org.eclipse.jetty.server.ServerConnector">
24
+ <Arg name="server"><Ref refid="Server" /></Arg>
25
+ <Arg name="acceptors" type="int"><Property name="solr.jetty.http.acceptors" default="-1"/></Arg>
26
+ <Arg name="selectors" type="int"><Property name="solr.jetty.http.selectors" default="-1"/></Arg>
27
+ <Arg name="factories">
28
+ <Array type="org.eclipse.jetty.server.ConnectionFactory">
29
+ <Item>
30
+ <New class="org.eclipse.jetty.server.HttpConnectionFactory">
31
+ <Arg name="config"><Ref refid="httpConfig" /></Arg>
32
+ </New>
33
+ </Item>
34
+ </Array>
35
+ </Arg>
36
+ <Set name="host"><Property name="jetty.host" /></Set>
37
+ <Set name="port"><Property name="jetty.port" default="8983" /></Set>
38
+ <Set name="idleTimeout"><Property name="solr.jetty.http.idleTimeout" default="50000"/></Set>
39
+ <Set name="soLingerTime"><Property name="solr.jetty.http.soLingerTime" default="-1"/></Set>
40
+ <Set name="acceptorPriorityDelta"><Property name="solr.jetty.http.acceptorPriorityDelta" default="0"/></Set>
41
+ <Set name="selectorPriorityDelta"><Property name="solr.jetty.http.selectorPriorityDelta" default="0"/></Set>
42
+ <Set name="acceptQueueSize"><Property name="solr.jetty.http.acceptQueueSize" default="0"/></Set>
43
+ </New>
44
+ </Arg>
45
+ </Call>
46
+
47
+ </Configure>
@@ -1,159 +1,175 @@
1
- <?xml version="1.0"?>
2
- <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
3
-
4
- <!-- =============================================================== -->
5
- <!-- Configure the Jetty Server -->
6
- <!-- -->
7
- <!-- Documentation of this file format can be found at: -->
8
- <!-- http://wiki.eclipse.org/Jetty/Reference/jetty.xml_syntax -->
9
- <!-- -->
10
- <!-- =============================================================== -->
11
-
12
-
13
- <Configure id="Server" class="org.eclipse.jetty.server.Server">
14
-
15
- <!-- =========================================================== -->
16
- <!-- Server Thread Pool -->
17
- <!-- =========================================================== -->
18
- <Set name="ThreadPool">
19
- <!-- Default queued blocking threadpool -->
20
- <New class="org.eclipse.jetty.util.thread.QueuedThreadPool">
21
- <Set name="minThreads">10</Set>
22
- <Set name="maxThreads">10000</Set>
23
- <Set name="detailedDump">false</Set>
24
- </New>
25
- </Set>
26
-
27
- <!-- =========================================================== -->
28
- <!-- Set connectors -->
29
- <!-- =========================================================== -->
30
-
31
- <!-- Jetty will accept SSL connections using a self signed certificate,
32
- and can optionally require the client to authenticate with a certificate,
33
- which can be the same as the server certificate.
34
-
35
- For information about generating the SSL certificate, etc., see:
36
-
37
- https://cwiki.apache.org/confluence/display/solr/Enabling+SSL
38
- -->
39
- <Call name="addConnector">
40
- <Arg>
41
- <New class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">
42
- <Arg>
43
- <New class="org.eclipse.jetty.http.ssl.SslContextFactory">
44
- <Set name="keyStore"><SystemProperty name="jetty.home" default="."/>/etc/solr-ssl.keystore.jks</Set>
45
- <Set name="keyStorePassword">secret</Set>
46
- <Set name="needClientAuth"><SystemProperty name="jetty.ssl.clientAuth" default="false"/></Set>
47
- </New>
48
- </Arg>
49
- <Set name="port"><SystemProperty name="jetty.ssl.port" default="8984"/></Set>
50
- <Set name="maxIdleTime">30000</Set>
51
- </New>
52
- </Arg>
53
- </Call>
54
-
55
- <!-- =========================================================== -->
56
- <!-- Set handler Collection Structure -->
57
- <!-- =========================================================== -->
58
- <Set name="handler">
59
- <New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">
60
- <Set name="handlers">
61
- <Array type="org.eclipse.jetty.server.Handler">
62
- <Item>
63
- <New id="Contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection"/>
64
- </Item>
65
- <Item>
66
- <New id="DefaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler"/>
67
- </Item>
68
- <Item>
69
- <New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler"/>
70
- </Item>
71
- </Array>
72
- </Set>
73
- </New>
74
- </Set>
75
-
76
- <!-- =========================================================== -->
77
- <!-- Configure Request Log -->
78
- <!-- =========================================================== -->
79
- <!--
80
- <Ref id="Handlers">
81
- <Call name="addHandler">
82
- <Arg>
83
- <New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler">
84
- <Set name="requestLog">
85
- <New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog">
86
- <Set name="filename">
87
- logs/request.yyyy_mm_dd.log
88
- </Set>
89
- <Set name="filenameDateFormat">yyyy_MM_dd</Set>
90
- <Set name="retainDays">90</Set>
91
- <Set name="append">true</Set>
92
- <Set name="extended">false</Set>
93
- <Set name="logCookies">false</Set>
94
- <Set name="LogTimeZone">UTC</Set>
95
- </New>
96
- </Set>
97
- </New>
98
- </Arg>
99
- </Call>
100
- </Ref>
101
- -->
102
-
103
- <!-- =========================================================== -->
104
- <!-- extra options -->
105
- <!-- =========================================================== -->
106
- <Set name="stopAtShutdown">true</Set>
107
- <Set name="sendServerVersion">false</Set>
108
- <Set name="sendDateHeader">false</Set>
109
- <Set name="gracefulShutdown">1000</Set>
110
- <Set name="dumpAfterStart">false</Set>
111
- <Set name="dumpBeforeStop">false</Set>
112
-
113
-
114
-
115
-
116
- <Call name="addBean">
117
- <Arg>
118
- <New id="DeploymentManager" class="org.eclipse.jetty.deploy.DeploymentManager">
119
- <Set name="contexts">
120
- <Ref id="Contexts" />
121
- </Set>
122
- <Call name="setContextAttribute">
123
- <Arg>org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern</Arg>
124
- <Arg>.*/servlet-api-[^/]*\.jar$</Arg>
125
- </Call>
126
-
127
-
128
- <!-- Add a customize step to the deployment lifecycle -->
129
- <!-- uncomment and replace DebugBinding with your extended AppLifeCycle.Binding class
130
- <Call name="insertLifeCycleNode">
131
- <Arg>deployed</Arg>
132
- <Arg>starting</Arg>
133
- <Arg>customise</Arg>
134
- </Call>
135
- <Call name="addLifeCycleBinding">
136
- <Arg>
137
- <New class="org.eclipse.jetty.deploy.bindings.DebugBinding">
138
- <Arg>customise</Arg>
139
- </New>
140
- </Arg>
141
- </Call>
142
- -->
143
-
144
- </New>
145
- </Arg>
146
- </Call>
147
-
148
- <Ref id="DeploymentManager">
149
- <Call name="addAppProvider">
150
- <Arg>
151
- <New class="org.eclipse.jetty.deploy.providers.ContextProvider">
152
- <Set name="monitoredDirName"><SystemProperty name="jetty.home" default="."/>/contexts</Set>
153
- <Set name="scanInterval">0</Set>
154
- </New>
155
- </Arg>
156
- </Call>
157
- </Ref>
158
-
159
- </Configure>
1
+ <?xml version="1.0"?>
2
+ <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
3
+
4
+ <!-- =============================================================== -->
5
+ <!-- Configure the Jetty Server -->
6
+ <!-- -->
7
+ <!-- Documentation of this file format can be found at: -->
8
+ <!-- http://wiki.eclipse.org/Jetty/Reference/jetty.xml_syntax -->
9
+ <!-- -->
10
+ <!-- =============================================================== -->
11
+
12
+
13
+ <Configure id="Server" class="org.eclipse.jetty.server.Server">
14
+
15
+ <!-- =========================================================== -->
16
+ <!-- Server Thread Pool -->
17
+ <!-- =========================================================== -->
18
+ <Set name="ThreadPool">
19
+ <!-- Default queued blocking threadpool -->
20
+ <New class="org.eclipse.jetty.util.thread.QueuedThreadPool">
21
+ <Set name="minThreads">10</Set>
22
+ <Set name="maxThreads">10000</Set>
23
+ <Set name="detailedDump">false</Set>
24
+ </New>
25
+ </Set>
26
+
27
+ <!-- =========================================================== -->
28
+ <!-- Set connectors -->
29
+ <!-- =========================================================== -->
30
+
31
+ <!-- Jetty will accept SSL connections using a self signed certificate,
32
+ and can optionally require the client to authenticate with a certificate,
33
+ which can be the same as the server certificate.
34
+
35
+ For information about generating the SSL certificate, etc., see:
36
+
37
+ https://cwiki.apache.org/confluence/display/solr/Enabling+SSL
38
+ -->
39
+ <Call name="addConnector">
40
+ <Arg>
41
+ <New class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">
42
+ <Arg>
43
+ <New class="org.eclipse.jetty.http.ssl.SslContextFactory">
44
+ <Set name="keyStore"><SystemProperty name="jetty.home" default="."/>/etc/solr-ssl.keystore.jks</Set>
45
+ <Set name="keyStorePassword">secret</Set>
46
+ <Set name="needClientAuth"><SystemProperty name="jetty.ssl.clientAuth" default="false"/></Set>
47
+ </New>
48
+ </Arg>
49
+ <Set name="port"><SystemProperty name="jetty.ssl.port" default="8984"/></Set>
50
+ <Set name="maxIdleTime">30000</Set>
51
+ </New>
52
+ </Arg>
53
+ </Call>
54
+
55
+ <!-- =========================================================== -->
56
+ <!-- RewriteHandle to redirect root to Solr -->
57
+ <!-- =========================================================== -->
58
+ <New id="RewriteHandler" class="org.eclipse.jetty.rewrite.handler.RewriteHandler">
59
+ <Set name="rewriteRequestURI">true</Set>
60
+ <Set name="rewritePathInfo">false</Set>
61
+ <Set name="originalPathAttribute">requestedPath</Set>
62
+
63
+ <Call name="addRule">
64
+ <Arg>
65
+ <New class="org.eclipse.jetty.rewrite.handler.RedirectRegexRule">
66
+ <Set name="regex">^/$</Set>
67
+ <Set name="replacement">/solr/</Set>
68
+ </New>
69
+ </Arg>
70
+ </Call>
71
+ </New>
72
+
73
+ <!-- =========================================================== -->
74
+ <!-- Set handler Collection Structure -->
75
+ <!-- =========================================================== -->
76
+ <Set name="handler">
77
+ <New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">
78
+ <Set name="handlers">
79
+ <Array type="org.eclipse.jetty.server.Handler">
80
+ <Item>
81
+ <Ref id="RewriteHandler"/>
82
+ </Item>
83
+ <Item>
84
+ <New id="Contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection"/>
85
+ </Item>
86
+ <Item>
87
+ <New id="DefaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler"/>
88
+ </Item>
89
+ <Item>
90
+ <New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler"/>
91
+ </Item>
92
+ </Array>
93
+ </Set>
94
+ </New>
95
+ </Set>
96
+
97
+ <!-- =========================================================== -->
98
+ <!-- Configure Request Log -->
99
+ <!-- =========================================================== -->
100
+ <!--
101
+ <Ref id="Handlers">
102
+ <Call name="addHandler">
103
+ <Arg>
104
+ <New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler">
105
+ <Set name="requestLog">
106
+ <New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog">
107
+ <Set name="filename">
108
+ logs/request.yyyy_mm_dd.log
109
+ </Set>
110
+ <Set name="filenameDateFormat">yyyy_MM_dd</Set>
111
+ <Set name="retainDays">90</Set>
112
+ <Set name="append">true</Set>
113
+ <Set name="extended">false</Set>
114
+ <Set name="logCookies">false</Set>
115
+ <Set name="LogTimeZone">UTC</Set>
116
+ </New>
117
+ </Set>
118
+ </New>
119
+ </Arg>
120
+ </Call>
121
+ </Ref>
122
+ -->
123
+
124
+ <!-- =========================================================== -->
125
+ <!-- extra options -->
126
+ <!-- =========================================================== -->
127
+ <Set name="stopAtShutdown">true</Set>
128
+ <Set name="sendServerVersion">false</Set>
129
+ <Set name="sendDateHeader">false</Set>
130
+ <Set name="gracefulShutdown">1000</Set>
131
+ <Set name="dumpAfterStart">false</Set>
132
+ <Set name="dumpBeforeStop">false</Set>
133
+
134
+
135
+
136
+
137
+ <Call name="addBean">
138
+ <Arg>
139
+ <New id="DeploymentManager" class="org.eclipse.jetty.deploy.DeploymentManager">
140
+ <Set name="contexts">
141
+ <Ref id="Contexts" />
142
+ </Set>
143
+
144
+ <!-- Add a customize step to the deployment lifecycle -->
145
+ <!-- uncomment and replace DebugBinding with your extended AppLifeCycle.Binding class
146
+ <Call name="insertLifeCycleNode">
147
+ <Arg>deployed</Arg>
148
+ <Arg>starting</Arg>
149
+ <Arg>customise</Arg>
150
+ </Call>
151
+ <Call name="addLifeCycleBinding">
152
+ <Arg>
153
+ <New class="org.eclipse.jetty.deploy.bindings.DebugBinding">
154
+ <Arg>customise</Arg>
155
+ </New>
156
+ </Arg>
157
+ </Call>
158
+ -->
159
+
160
+ </New>
161
+ </Arg>
162
+ </Call>
163
+
164
+ <Ref id="DeploymentManager">
165
+ <Call name="addAppProvider">
166
+ <Arg>
167
+ <New class="org.eclipse.jetty.deploy.providers.ContextProvider">
168
+ <Set name="monitoredDirName"><SystemProperty name="jetty.home" default="."/>/contexts</Set>
169
+ <Set name="scanInterval">0</Set>
170
+ </New>
171
+ </Arg>
172
+ </Call>
173
+ </Ref>
174
+
175
+ </Configure>