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.
- checksums.yaml +4 -4
- data/bin/sunspot-solr +2 -6
- data/lib/sunspot/solr/server.rb +2 -3
- data/solr/README.txt +181 -181
- data/solr/bin/post +29 -19
- data/solr/bin/solr +247 -428
- data/solr/bin/solr.cmd +102 -256
- data/solr/bin/solr.in.cmd +15 -7
- data/solr/bin/solr.in.sh +26 -12
- data/solr/server/README.txt +110 -113
- data/solr/server/contexts/solr-jetty-context.xml +8 -8
- data/solr/server/etc/jetty-http.xml +47 -0
- data/solr/server/etc/jetty-https-ssl.xml +175 -159
- data/solr/server/etc/jetty-https.xml +53 -0
- data/solr/server/etc/jetty-ssl.xml +46 -0
- data/solr/server/etc/jetty.xml +189 -167
- data/solr/server/etc/webdefault.xml +527 -527
- data/solr/server/lib/javax.servlet-api-3.1.0.jar +0 -0
- data/solr/server/lib/jetty-continuation-9.2.11.v20150529.jar +0 -0
- data/solr/server/lib/jetty-deploy-9.2.11.v20150529.jar +0 -0
- data/solr/server/lib/jetty-http-9.2.11.v20150529.jar +0 -0
- data/solr/server/lib/jetty-io-9.2.11.v20150529.jar +0 -0
- data/solr/server/lib/jetty-jmx-9.2.11.v20150529.jar +0 -0
- data/solr/server/lib/jetty-rewrite-9.2.11.v20150529.jar +0 -0
- data/solr/server/lib/jetty-security-9.2.11.v20150529.jar +0 -0
- data/solr/server/lib/jetty-server-9.2.11.v20150529.jar +0 -0
- data/solr/server/lib/jetty-servlet-9.2.11.v20150529.jar +0 -0
- data/solr/server/lib/jetty-servlets-9.2.11.v20150529.jar +0 -0
- data/solr/server/lib/jetty-util-9.2.11.v20150529.jar +0 -0
- data/solr/server/lib/jetty-webapp-9.2.11.v20150529.jar +0 -0
- data/solr/server/lib/jetty-xml-9.2.11.v20150529.jar +0 -0
- data/solr/server/modules/http.mod +9 -0
- data/solr/server/modules/https.mod +9 -0
- data/solr/server/modules/server.mod +11 -0
- data/solr/server/modules/ssl.mod +9 -0
- data/solr/server/resources/jetty-logging.properties +1 -0
- data/solr/server/resources/log4j.properties +24 -24
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/commons-exec-1.3.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/{hadoop-annotations-2.3.0.jar → hadoop-annotations-2.6.0.jar} +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-auth-2.6.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-common-2.6.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-hdfs-2.6.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/htrace-core-3.0.4.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpclient-4.4.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpcore-4.4.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpmime-4.4.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/jackson-core-2.5.4.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/jackson-dataformat-smile-2.5.4.jar +0 -0
- 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
- 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
- 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
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-backward-codecs-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-codecs-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-core-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/{lucene-expressions-5.0.0.jar → lucene-expressions-5.3.1.jar} +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/{lucene-grouping-5.0.0.jar → lucene-grouping-5.3.1.jar} +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-highlighter-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-join-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-memory-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-misc-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-queries-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/{lucene-queryparser-5.0.0.jar → lucene-queryparser-5.3.1.jar} +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-sandbox-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-spatial-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-suggest-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/org.restlet-2.3.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/org.restlet.ext.servlet-2.3.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/solr-core-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/solr-solrj-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/t-digest-3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/web.xml +169 -181
- data/solr/server/solr-webapp/webapp/WEB-INF/weblogic.xml +28 -28
- data/solr/server/solr-webapp/webapp/admin.html +164 -163
- data/solr/server/solr-webapp/webapp/css/angular/analysis.css +304 -0
- data/solr/server/solr-webapp/webapp/css/angular/chosen.css +465 -0
- data/solr/server/solr-webapp/webapp/css/angular/cloud.css +398 -0
- data/solr/server/solr-webapp/webapp/css/angular/common.css +724 -0
- data/solr/server/solr-webapp/webapp/css/angular/cores.css +233 -0
- data/solr/server/solr-webapp/webapp/css/angular/dataimport.css +370 -0
- data/solr/server/solr-webapp/webapp/css/angular/documents.css +179 -0
- data/solr/server/solr-webapp/webapp/css/angular/files.css +53 -0
- data/solr/server/solr-webapp/webapp/css/angular/index.css +206 -0
- data/solr/server/solr-webapp/webapp/css/angular/logging.css +376 -0
- data/solr/server/solr-webapp/webapp/css/angular/menu.css +321 -0
- data/solr/server/solr-webapp/webapp/css/angular/plugins.css +212 -0
- data/solr/server/solr-webapp/webapp/css/angular/query.css +162 -0
- data/solr/server/solr-webapp/webapp/css/angular/replication.css +500 -0
- data/solr/server/solr-webapp/webapp/css/angular/schema-browser.css +567 -0
- data/solr/server/solr-webapp/webapp/css/angular/segments.css +173 -0
- data/solr/server/solr-webapp/webapp/css/angular/threads.css +161 -0
- data/solr/server/solr-webapp/webapp/css/chosen.css +421 -421
- data/solr/server/solr-webapp/webapp/css/styles/analysis.css +311 -311
- data/solr/server/solr-webapp/webapp/css/styles/cloud.css +410 -410
- data/solr/server/solr-webapp/webapp/css/styles/common.css +701 -701
- data/solr/server/solr-webapp/webapp/css/styles/cores.css +244 -244
- data/solr/server/solr-webapp/webapp/css/styles/dashboard.css +155 -155
- data/solr/server/solr-webapp/webapp/css/styles/dataimport.css +403 -403
- data/solr/server/solr-webapp/webapp/css/styles/documents.css +197 -197
- data/solr/server/solr-webapp/webapp/css/styles/files.css +54 -54
- data/solr/server/solr-webapp/webapp/css/styles/index.css +207 -207
- data/solr/server/solr-webapp/webapp/css/styles/java-properties.css +52 -52
- data/solr/server/solr-webapp/webapp/css/styles/logging.css +391 -391
- data/solr/server/solr-webapp/webapp/css/styles/menu.css +329 -328
- data/solr/server/solr-webapp/webapp/css/styles/plugins.css +195 -195
- data/solr/server/solr-webapp/webapp/css/styles/query.css +173 -173
- data/solr/server/solr-webapp/webapp/css/styles/replication.css +515 -515
- data/solr/server/solr-webapp/webapp/css/styles/schema-browser.css +578 -578
- data/solr/server/solr-webapp/webapp/css/styles/segments.css +145 -0
- data/solr/server/solr-webapp/webapp/css/styles/threads.css +172 -172
- data/solr/server/solr-webapp/webapp/img/chosen-sprite-2x.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/README +27 -27
- data/solr/server/solr-webapp/webapp/img/solr.svg +39 -39
- data/solr/server/solr-webapp/webapp/index.html +208 -0
- data/solr/server/solr-webapp/webapp/js/angular/app.js +713 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/analysis.js +199 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/cloud.js +528 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/core-overview.js +225 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/cores.js +465 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/dataimport.js +284 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/documents.js +139 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/files.js +92 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/index.js +95 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/java-properties.js +45 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/logging.js +146 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/plugins.js +166 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/query.js +99 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/replication.js +227 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/schema-browser.js +432 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/segments.js +94 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/threads.js +51 -0
- data/solr/server/solr-webapp/webapp/js/angular/services.js +214 -0
- data/solr/server/solr-webapp/webapp/js/lib/ZeroClipboard.js +342 -342
- data/solr/server/solr-webapp/webapp/js/lib/chosen.js +982 -982
- data/solr/server/solr-webapp/webapp/js/lib/console.js +29 -29
- data/solr/server/solr-webapp/webapp/js/lib/d3.js +9373 -9373
- data/solr/server/solr-webapp/webapp/js/lib/highlight.js +31 -31
- data/solr/server/solr-webapp/webapp/js/lib/jquery-1.7.2.min.js +30 -30
- data/solr/server/solr-webapp/webapp/js/lib/jquery.ajaxfileupload.js +184 -184
- data/solr/server/solr-webapp/webapp/js/lib/jquery.blockUI.js +523 -523
- data/solr/server/solr-webapp/webapp/js/lib/jquery.cookie.js +71 -71
- data/solr/server/solr-webapp/webapp/js/lib/jquery.form.js +806 -806
- data/solr/server/solr-webapp/webapp/js/lib/jquery.jstree.js +3534 -3534
- data/solr/server/solr-webapp/webapp/js/lib/jquery.sammy.js +1863 -1863
- data/solr/server/solr-webapp/webapp/js/lib/jquery.timeago.js +189 -189
- data/solr/server/solr-webapp/webapp/js/lib/linker.js +48 -48
- data/solr/server/solr-webapp/webapp/js/lib/naturalSort.js +82 -0
- data/solr/server/solr-webapp/webapp/js/lib/order.js +216 -216
- data/solr/server/solr-webapp/webapp/js/main.js +60 -58
- data/solr/server/solr-webapp/webapp/js/require.js +11349 -11349
- data/solr/server/solr-webapp/webapp/js/scripts/analysis.js +545 -545
- data/solr/server/solr-webapp/webapp/js/scripts/app.js +680 -679
- data/solr/server/solr-webapp/webapp/js/scripts/cloud.js +877 -877
- data/solr/server/solr-webapp/webapp/js/scripts/cores.js +719 -719
- data/solr/server/solr-webapp/webapp/js/scripts/dashboard.js +562 -562
- data/solr/server/solr-webapp/webapp/js/scripts/dataimport.js +812 -812
- data/solr/server/solr-webapp/webapp/js/scripts/documents.js +370 -370
- data/solr/server/solr-webapp/webapp/js/scripts/files.js +265 -265
- data/solr/server/solr-webapp/webapp/js/scripts/index.js +340 -340
- data/solr/server/solr-webapp/webapp/js/scripts/java-properties.js +106 -106
- data/solr/server/solr-webapp/webapp/js/scripts/logging.js +578 -576
- data/solr/server/solr-webapp/webapp/js/scripts/ping.js +72 -72
- data/solr/server/solr-webapp/webapp/js/scripts/plugins.js +462 -462
- data/solr/server/solr-webapp/webapp/js/scripts/query.js +229 -229
- data/solr/server/solr-webapp/webapp/js/scripts/replication.js +527 -527
- data/solr/server/solr-webapp/webapp/js/scripts/schema-browser.js +1229 -1229
- data/solr/server/solr-webapp/webapp/js/scripts/segments.js +206 -0
- data/solr/server/solr-webapp/webapp/js/scripts/threads.js +158 -158
- data/solr/server/solr-webapp/webapp/libs/angular-chosen.js +139 -0
- data/solr/server/solr-webapp/webapp/libs/angular-cookies.js +229 -0
- data/solr/server/solr-webapp/webapp/libs/angular-cookies.min.js +31 -0
- data/solr/server/solr-webapp/webapp/libs/angular-resource.min.js +36 -0
- data/solr/server/solr-webapp/webapp/libs/angular-route.js +1018 -0
- data/solr/server/solr-webapp/webapp/libs/angular-route.min.js +38 -0
- data/solr/server/solr-webapp/webapp/libs/angular-sanitize.js +703 -0
- data/solr/server/solr-webapp/webapp/libs/angular-sanitize.min.js +39 -0
- data/solr/server/solr-webapp/webapp/libs/angular.js +26093 -0
- data/solr/server/solr-webapp/webapp/libs/angular.min.js +273 -0
- data/solr/server/solr-webapp/webapp/libs/chosen.jquery.js +1194 -0
- data/solr/server/solr-webapp/webapp/libs/chosen.jquery.min.js +30 -0
- data/solr/server/solr-webapp/webapp/libs/d3.js +9373 -0
- data/solr/server/solr-webapp/webapp/libs/highlight.js +31 -0
- data/solr/server/solr-webapp/webapp/libs/jquery-2.1.3.min.js +29 -0
- data/solr/server/solr-webapp/webapp/libs/jquery.jstree.js +3534 -0
- data/solr/server/solr-webapp/webapp/libs/ngtimeago.js +102 -0
- data/solr/server/solr-webapp/webapp/partials/analysis.html +128 -0
- data/solr/server/solr-webapp/webapp/partials/cloud.html +104 -0
- data/solr/server/solr-webapp/webapp/partials/core_overview.html +227 -0
- data/solr/server/solr-webapp/webapp/partials/cores.html +231 -0
- data/solr/server/solr-webapp/webapp/partials/dataimport.html +209 -0
- data/solr/server/solr-webapp/webapp/partials/documents.html +118 -0
- data/solr/server/solr-webapp/webapp/partials/files.html +47 -0
- data/solr/server/solr-webapp/webapp/partials/index.html +261 -0
- data/solr/server/solr-webapp/webapp/partials/java-properties.html +27 -0
- data/solr/server/solr-webapp/webapp/partials/logging-levels.html +56 -0
- data/solr/server/solr-webapp/webapp/partials/logging.html +56 -0
- data/solr/server/solr-webapp/webapp/partials/plugins.html +72 -0
- data/solr/server/solr-webapp/webapp/partials/query.html +356 -0
- data/solr/server/solr-webapp/webapp/partials/replication.html +239 -0
- data/solr/server/solr-webapp/webapp/partials/schema-browser.html +206 -0
- data/solr/server/solr-webapp/webapp/partials/segments.html +99 -0
- data/solr/server/solr-webapp/webapp/partials/threads.html +65 -0
- data/solr/server/solr-webapp/webapp/tpl/analysis.html +83 -83
- data/solr/server/solr-webapp/webapp/tpl/cloud.html +87 -87
- data/solr/server/solr-webapp/webapp/tpl/cores.html +226 -226
- data/solr/server/solr-webapp/webapp/tpl/dashboard.html +201 -201
- data/solr/server/solr-webapp/webapp/tpl/dataimport.html +183 -183
- data/solr/server/solr-webapp/webapp/tpl/documents.html +107 -107
- data/solr/server/solr-webapp/webapp/tpl/files.html +44 -44
- data/solr/server/solr-webapp/webapp/tpl/index.html +250 -250
- data/solr/server/solr-webapp/webapp/tpl/logging.html +23 -23
- data/solr/server/solr-webapp/webapp/tpl/plugins.html +39 -39
- data/solr/server/solr-webapp/webapp/tpl/query.html +361 -361
- data/solr/server/solr-webapp/webapp/tpl/replication.html +216 -216
- data/solr/server/solr-webapp/webapp/tpl/schema-browser.html +192 -192
- data/solr/server/solr-webapp/webapp/tpl/segments.html +49 -0
- data/solr/server/solr-webapp/webapp/tpl/threads.html +56 -56
- data/solr/server/solr/README.txt +77 -77
- data/solr/server/solr/solr.xml +51 -51
- data/solr/server/solr/zoo.cfg +17 -17
- data/solr/server/start.jar +0 -0
- data/spec/server_spec.rb +3 -8
- metadata +132 -43
- data/solr/server/lib/jetty-continuation-8.1.10.v20130312.jar +0 -0
- data/solr/server/lib/jetty-deploy-8.1.10.v20130312.jar +0 -0
- data/solr/server/lib/jetty-http-8.1.10.v20130312.jar +0 -0
- data/solr/server/lib/jetty-io-8.1.10.v20130312.jar +0 -0
- data/solr/server/lib/jetty-jmx-8.1.10.v20130312.jar +0 -0
- data/solr/server/lib/jetty-security-8.1.10.v20130312.jar +0 -0
- data/solr/server/lib/jetty-server-8.1.10.v20130312.jar +0 -0
- data/solr/server/lib/jetty-servlet-8.1.10.v20130312.jar +0 -0
- data/solr/server/lib/jetty-util-8.1.10.v20130312.jar +0 -0
- data/solr/server/lib/jetty-webapp-8.1.10.v20130312.jar +0 -0
- data/solr/server/lib/jetty-xml-8.1.10.v20130312.jar +0 -0
- data/solr/server/lib/servlet-api-3.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/.gitignore +0 -1
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-auth-2.3.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-common-2.3.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-hdfs-2.3.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpclient-4.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpcore-4.3.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpmime-4.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-backward-codecs-5.0.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-codecs-5.0.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-core-5.0.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-highlighter-5.0.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-join-5.0.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-memory-5.0.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-misc-5.0.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-queries-5.0.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-spatial-5.0.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-suggest-5.0.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/org.restlet-2.1.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/org.restlet.ext.servlet-2.1.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/solr-core-5.0.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/solr-solrj-5.0.0.jar +0 -0
- 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
|
77
|
-
REM
|
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
|
86
|
-
|
87
|
-
REM
|
88
|
-
REM
|
89
|
-
REM set
|
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
|
22
|
-
|
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
|
79
|
-
#
|
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
|
-
#
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
#
|
102
|
-
|
103
|
-
#
|
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
|
+
|
data/solr/server/README.txt
CHANGED
@@ -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
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
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/
|
3
|
-
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
|
4
|
-
<Set name="contextPath"><
|
5
|
-
<Set name="war"><
|
6
|
-
<Set name="defaultsDescriptor"><
|
7
|
-
<Set name="
|
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
|
-
<!--
|
57
|
-
<!-- =========================================================== -->
|
58
|
-
|
59
|
-
<
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
<
|
152
|
-
<
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
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>
|