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.
- 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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d733be2fd7805cebf1200c3ac54ee7a42853565b
|
|
4
|
+
data.tar.gz: d759d7b89e20d77589ce2226c654593a53a6448b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c691c49d61e2feac0bcd2ce127949bf0c9aff9c8fa849b4fcdb3c07d0d260b8dfb88032ceec380e9365933a93e452b343f67d0f5e6fd0d29b29d5a0433594f84
|
|
7
|
+
data.tar.gz: 5c3cdcef14df2e6719e79f5021b8bebba93f03bf19c0c058e20c7da7f39e40942bd1d87b6d6f3a144a5634b25b259699e754bced1c6ee85dbefc6024b197a2a9
|
data/bin/sunspot-solr
CHANGED
|
@@ -46,12 +46,8 @@ opts = OptionParser.new do |opts|
|
|
|
46
46
|
server.log_file = File.expand_path(lf)
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
-
opts.on '--
|
|
50
|
-
server.
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
opts.on '--min-memory=MEMORY', 'Specify the initial size of the memory allocation pool' do |mm|
|
|
54
|
-
server.min_memory = mm
|
|
49
|
+
opts.on '--memory=MEMORY', 'Specify the size of the memory allocation pool' do |m|
|
|
50
|
+
server.memory = m
|
|
55
51
|
end
|
|
56
52
|
end
|
|
57
53
|
|
data/lib/sunspot/solr/server.rb
CHANGED
|
@@ -19,7 +19,7 @@ module Sunspot
|
|
|
19
19
|
|
|
20
20
|
LOG_LEVELS = Set['SEVERE', 'WARNING', 'INFO', 'CONFIG', 'FINE', 'FINER', 'FINEST']
|
|
21
21
|
|
|
22
|
-
attr_accessor :
|
|
22
|
+
attr_accessor :memory, :bind_address, :port, :log_file
|
|
23
23
|
|
|
24
24
|
attr_writer :pid_dir, :pid_file, :solr_home, :solr_executable
|
|
25
25
|
|
|
@@ -92,8 +92,7 @@ module Sunspot
|
|
|
92
92
|
bootstrap
|
|
93
93
|
|
|
94
94
|
command = %w[./solr start -f]
|
|
95
|
-
command << "-
|
|
96
|
-
command << "-Xmx#{max_memory}" if max_memory
|
|
95
|
+
command << "-m" << "#{memory}" if memory
|
|
97
96
|
command << "-p" << "#{port}" if port
|
|
98
97
|
command << "-h" << "#{bind_address}" if bind_address
|
|
99
98
|
command << "-s" << "#{solr_home}" if solr_home
|
data/solr/README.txt
CHANGED
|
@@ -1,181 +1,181 @@
|
|
|
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
|
-
|
|
17
|
-
Welcome to the Apache Solr project!
|
|
18
|
-
-----------------------------------
|
|
19
|
-
|
|
20
|
-
Solr is the popular, blazing fast open source enterprise search platform
|
|
21
|
-
from the Apache Lucene project.
|
|
22
|
-
|
|
23
|
-
For a complete description of the Solr project, team composition, source
|
|
24
|
-
code repositories, and other details, please see the Solr web site at
|
|
25
|
-
http://lucene.apache.org/solr
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
Getting Started
|
|
29
|
-
---------------
|
|
30
|
-
|
|
31
|
-
To start Solr for the first time after installation, simply do:
|
|
32
|
-
|
|
33
|
-
bin/solr start
|
|
34
|
-
|
|
35
|
-
This will launch a standalone Solr server in the background of your shell,
|
|
36
|
-
listening on port 8983. Alternatively, you can launch Solr in "cloud" mode,
|
|
37
|
-
which allows you to scale out using sharding and replication. To launch Solr
|
|
38
|
-
in cloud mode, do:
|
|
39
|
-
|
|
40
|
-
bin/solr start -cloud
|
|
41
|
-
|
|
42
|
-
To see all available options for starting Solr, please do:
|
|
43
|
-
|
|
44
|
-
bin/solr start -help
|
|
45
|
-
|
|
46
|
-
After starting Solr, create either a core or collection depending on whether
|
|
47
|
-
Solr is running in standalone (core) or SolrCloud mode (collection) by doing:
|
|
48
|
-
|
|
49
|
-
bin/solr create -c <name>
|
|
50
|
-
|
|
51
|
-
This will create a collection that uses a data-driven schema which tries to guess
|
|
52
|
-
the correct field type when you add documents to the index. To see all available
|
|
53
|
-
options for creating a new collection, execute:
|
|
54
|
-
|
|
55
|
-
bin/solr create -help
|
|
56
|
-
|
|
57
|
-
After starting Solr, direct your Web browser to the Solr Admin Console at:
|
|
58
|
-
|
|
59
|
-
http://localhost:8983/solr/
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
Solr Examples
|
|
63
|
-
---------------
|
|
64
|
-
|
|
65
|
-
Solr includes a few examples to help you get started. To run a specific example, do:
|
|
66
|
-
|
|
67
|
-
bin/solr -e <EXAMPLE> where <EXAMPLE> is one of:
|
|
68
|
-
|
|
69
|
-
cloud : SolrCloud example
|
|
70
|
-
dih : Data Import Handler (rdbms, mail, rss, tika)
|
|
71
|
-
schemaless : Schema-less example (schema is inferred from data during indexing)
|
|
72
|
-
techproducts : Kitchen sink example providing comprehensive examples of Solr features
|
|
73
|
-
|
|
74
|
-
For instance, if you want to run the Solr Data Import Handler example, do:
|
|
75
|
-
|
|
76
|
-
bin/solr -e dih
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
Indexing Documents
|
|
80
|
-
---------------
|
|
81
|
-
|
|
82
|
-
To add documents to the index, use bin/post. For example:
|
|
83
|
-
|
|
84
|
-
bin/post -c <collection_name> example/exampledocs/*.xml
|
|
85
|
-
|
|
86
|
-
For more information about Solr examples please read...
|
|
87
|
-
|
|
88
|
-
* example/solr/README.txt
|
|
89
|
-
For more information about the "Solr Home" and Solr specific configuration
|
|
90
|
-
* http://lucene.apache.org/solr/quickstart.html
|
|
91
|
-
For a Quick Start guide
|
|
92
|
-
* http://lucene.apache.org/solr/resources.html
|
|
93
|
-
For a list of other tutorials and introductory articles.
|
|
94
|
-
|
|
95
|
-
or linked from "docs/index.html" in a binary distribution.
|
|
96
|
-
|
|
97
|
-
Also, there are Solr clients for many programming languages, see
|
|
98
|
-
http://wiki.apache.org/solr/IntegratingSolr
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
Files included in an Apache Solr binary distribution
|
|
102
|
-
----------------------------------------------------
|
|
103
|
-
|
|
104
|
-
server/
|
|
105
|
-
A self-contained Solr instance, complete with a sample
|
|
106
|
-
configuration and documents to index. Please see: bin/solr start -help
|
|
107
|
-
for more information about starting a Solr server.
|
|
108
|
-
|
|
109
|
-
dist/solr-XX.war
|
|
110
|
-
The Apache Solr Application. Deploy this WAR file to any servlet
|
|
111
|
-
container to run Apache Solr.
|
|
112
|
-
|
|
113
|
-
dist/solr-<component>-XX.jar
|
|
114
|
-
The Apache Solr libraries. To compile Apache Solr Plugins,
|
|
115
|
-
one or more of these will be required. The core library is
|
|
116
|
-
required at a minimum. (see http://wiki.apache.org/solr/SolrPlugins
|
|
117
|
-
for more information).
|
|
118
|
-
|
|
119
|
-
docs/index.html
|
|
120
|
-
The Apache Solr Javadoc API documentation and Tutorial
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
Instructions for Building Apache Solr from Source
|
|
124
|
-
-------------------------------------------------
|
|
125
|
-
|
|
126
|
-
1. Download the Java SE 7 JDK (Java Development Kit) or later from http://java.sun.com/
|
|
127
|
-
You will need the JDK installed, and the $JAVA_HOME/bin (Windows: %JAVA_HOME%\bin)
|
|
128
|
-
folder included on your command path. To test this, issue a "java -version" command
|
|
129
|
-
from your shell (command prompt) and verify that the Java version is 1.7 or later.
|
|
130
|
-
|
|
131
|
-
2. Download the Apache Ant binary distribution (1.8.2+) from
|
|
132
|
-
http://ant.apache.org/ You will need Ant installed and the $ANT_HOME/bin (Windows:
|
|
133
|
-
%ANT_HOME%\bin) folder included on your command path. To test this, issue a
|
|
134
|
-
"ant -version" command from your shell (command prompt) and verify that Ant is
|
|
135
|
-
available.
|
|
136
|
-
|
|
137
|
-
You will also need to install Apache Ivy binary distribution (2.2.0) from
|
|
138
|
-
http://ant.apache.org/ivy/ and place ivy-2.2.0.jar file in ~/.ant/lib -- if you skip
|
|
139
|
-
this step, the Solr build system will offer to do it for you.
|
|
140
|
-
|
|
141
|
-
3. Download the Apache Solr distribution, linked from the above web site.
|
|
142
|
-
Unzip the distribution to a folder of your choice, e.g. C:\solr or ~/solr
|
|
143
|
-
Alternately, you can obtain a copy of the latest Apache Solr source code
|
|
144
|
-
directly from the Subversion repository:
|
|
145
|
-
|
|
146
|
-
http://lucene.apache.org/solr/versioncontrol.html
|
|
147
|
-
|
|
148
|
-
4. Navigate to the "solr" folder and issue an "ant" command to see the available options
|
|
149
|
-
for building, testing, and packaging Solr.
|
|
150
|
-
|
|
151
|
-
NOTE:
|
|
152
|
-
To see Solr in action, you may want to use the "ant server" command to build
|
|
153
|
-
and package Solr into the server/webapps directory. See also server/README.txt.
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
Export control
|
|
157
|
-
-------------------------------------------------
|
|
158
|
-
This distribution includes cryptographic software. The country in
|
|
159
|
-
which you currently reside may have restrictions on the import,
|
|
160
|
-
possession, use, and/or re-export to another country, of
|
|
161
|
-
encryption software. BEFORE using any encryption software, please
|
|
162
|
-
check your country's laws, regulations and policies concerning the
|
|
163
|
-
import, possession, or use, and re-export of encryption software, to
|
|
164
|
-
see if this is permitted. See <http://www.wassenaar.org/> for more
|
|
165
|
-
information.
|
|
166
|
-
|
|
167
|
-
The U.S. Government Department of Commerce, Bureau of Industry and
|
|
168
|
-
Security (BIS), has classified this software as Export Commodity
|
|
169
|
-
Control Number (ECCN) 5D002.C.1, which includes information security
|
|
170
|
-
software using or performing cryptographic functions with asymmetric
|
|
171
|
-
algorithms. The form and manner of this Apache Software Foundation
|
|
172
|
-
distribution makes it eligible for export under the License Exception
|
|
173
|
-
ENC Technology Software Unrestricted (TSU) exception (see the BIS
|
|
174
|
-
Export Administration Regulations, Section 740.13) for both object
|
|
175
|
-
code and source code.
|
|
176
|
-
|
|
177
|
-
The following provides more details on the included cryptographic
|
|
178
|
-
software:
|
|
179
|
-
Apache Solr uses the Apache Tika which uses the Bouncy Castle generic encryption libraries for
|
|
180
|
-
extracting text content and metadata from encrypted PDF files.
|
|
181
|
-
See http://www.bouncycastle.org/ for more details on Bouncy Castle.
|
|
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
|
+
|
|
17
|
+
Welcome to the Apache Solr project!
|
|
18
|
+
-----------------------------------
|
|
19
|
+
|
|
20
|
+
Solr is the popular, blazing fast open source enterprise search platform
|
|
21
|
+
from the Apache Lucene project.
|
|
22
|
+
|
|
23
|
+
For a complete description of the Solr project, team composition, source
|
|
24
|
+
code repositories, and other details, please see the Solr web site at
|
|
25
|
+
http://lucene.apache.org/solr
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
Getting Started
|
|
29
|
+
---------------
|
|
30
|
+
|
|
31
|
+
To start Solr for the first time after installation, simply do:
|
|
32
|
+
|
|
33
|
+
bin/solr start
|
|
34
|
+
|
|
35
|
+
This will launch a standalone Solr server in the background of your shell,
|
|
36
|
+
listening on port 8983. Alternatively, you can launch Solr in "cloud" mode,
|
|
37
|
+
which allows you to scale out using sharding and replication. To launch Solr
|
|
38
|
+
in cloud mode, do:
|
|
39
|
+
|
|
40
|
+
bin/solr start -cloud
|
|
41
|
+
|
|
42
|
+
To see all available options for starting Solr, please do:
|
|
43
|
+
|
|
44
|
+
bin/solr start -help
|
|
45
|
+
|
|
46
|
+
After starting Solr, create either a core or collection depending on whether
|
|
47
|
+
Solr is running in standalone (core) or SolrCloud mode (collection) by doing:
|
|
48
|
+
|
|
49
|
+
bin/solr create -c <name>
|
|
50
|
+
|
|
51
|
+
This will create a collection that uses a data-driven schema which tries to guess
|
|
52
|
+
the correct field type when you add documents to the index. To see all available
|
|
53
|
+
options for creating a new collection, execute:
|
|
54
|
+
|
|
55
|
+
bin/solr create -help
|
|
56
|
+
|
|
57
|
+
After starting Solr, direct your Web browser to the Solr Admin Console at:
|
|
58
|
+
|
|
59
|
+
http://localhost:8983/solr/
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
Solr Examples
|
|
63
|
+
---------------
|
|
64
|
+
|
|
65
|
+
Solr includes a few examples to help you get started. To run a specific example, do:
|
|
66
|
+
|
|
67
|
+
bin/solr -e <EXAMPLE> where <EXAMPLE> is one of:
|
|
68
|
+
|
|
69
|
+
cloud : SolrCloud example
|
|
70
|
+
dih : Data Import Handler (rdbms, mail, rss, tika)
|
|
71
|
+
schemaless : Schema-less example (schema is inferred from data during indexing)
|
|
72
|
+
techproducts : Kitchen sink example providing comprehensive examples of Solr features
|
|
73
|
+
|
|
74
|
+
For instance, if you want to run the Solr Data Import Handler example, do:
|
|
75
|
+
|
|
76
|
+
bin/solr -e dih
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
Indexing Documents
|
|
80
|
+
---------------
|
|
81
|
+
|
|
82
|
+
To add documents to the index, use bin/post. For example:
|
|
83
|
+
|
|
84
|
+
bin/post -c <collection_name> example/exampledocs/*.xml
|
|
85
|
+
|
|
86
|
+
For more information about Solr examples please read...
|
|
87
|
+
|
|
88
|
+
* example/solr/README.txt
|
|
89
|
+
For more information about the "Solr Home" and Solr specific configuration
|
|
90
|
+
* http://lucene.apache.org/solr/quickstart.html
|
|
91
|
+
For a Quick Start guide
|
|
92
|
+
* http://lucene.apache.org/solr/resources.html
|
|
93
|
+
For a list of other tutorials and introductory articles.
|
|
94
|
+
|
|
95
|
+
or linked from "docs/index.html" in a binary distribution.
|
|
96
|
+
|
|
97
|
+
Also, there are Solr clients for many programming languages, see
|
|
98
|
+
http://wiki.apache.org/solr/IntegratingSolr
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
Files included in an Apache Solr binary distribution
|
|
102
|
+
----------------------------------------------------
|
|
103
|
+
|
|
104
|
+
server/
|
|
105
|
+
A self-contained Solr instance, complete with a sample
|
|
106
|
+
configuration and documents to index. Please see: bin/solr start -help
|
|
107
|
+
for more information about starting a Solr server.
|
|
108
|
+
|
|
109
|
+
dist/solr-XX.war
|
|
110
|
+
The Apache Solr Application. Deploy this WAR file to any servlet
|
|
111
|
+
container to run Apache Solr.
|
|
112
|
+
|
|
113
|
+
dist/solr-<component>-XX.jar
|
|
114
|
+
The Apache Solr libraries. To compile Apache Solr Plugins,
|
|
115
|
+
one or more of these will be required. The core library is
|
|
116
|
+
required at a minimum. (see http://wiki.apache.org/solr/SolrPlugins
|
|
117
|
+
for more information).
|
|
118
|
+
|
|
119
|
+
docs/index.html
|
|
120
|
+
The Apache Solr Javadoc API documentation and Tutorial
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
Instructions for Building Apache Solr from Source
|
|
124
|
+
-------------------------------------------------
|
|
125
|
+
|
|
126
|
+
1. Download the Java SE 7 JDK (Java Development Kit) or later from http://java.sun.com/
|
|
127
|
+
You will need the JDK installed, and the $JAVA_HOME/bin (Windows: %JAVA_HOME%\bin)
|
|
128
|
+
folder included on your command path. To test this, issue a "java -version" command
|
|
129
|
+
from your shell (command prompt) and verify that the Java version is 1.7 or later.
|
|
130
|
+
|
|
131
|
+
2. Download the Apache Ant binary distribution (1.8.2+) from
|
|
132
|
+
http://ant.apache.org/ You will need Ant installed and the $ANT_HOME/bin (Windows:
|
|
133
|
+
%ANT_HOME%\bin) folder included on your command path. To test this, issue a
|
|
134
|
+
"ant -version" command from your shell (command prompt) and verify that Ant is
|
|
135
|
+
available.
|
|
136
|
+
|
|
137
|
+
You will also need to install Apache Ivy binary distribution (2.2.0) from
|
|
138
|
+
http://ant.apache.org/ivy/ and place ivy-2.2.0.jar file in ~/.ant/lib -- if you skip
|
|
139
|
+
this step, the Solr build system will offer to do it for you.
|
|
140
|
+
|
|
141
|
+
3. Download the Apache Solr distribution, linked from the above web site.
|
|
142
|
+
Unzip the distribution to a folder of your choice, e.g. C:\solr or ~/solr
|
|
143
|
+
Alternately, you can obtain a copy of the latest Apache Solr source code
|
|
144
|
+
directly from the Subversion repository:
|
|
145
|
+
|
|
146
|
+
http://lucene.apache.org/solr/versioncontrol.html
|
|
147
|
+
|
|
148
|
+
4. Navigate to the "solr" folder and issue an "ant" command to see the available options
|
|
149
|
+
for building, testing, and packaging Solr.
|
|
150
|
+
|
|
151
|
+
NOTE:
|
|
152
|
+
To see Solr in action, you may want to use the "ant server" command to build
|
|
153
|
+
and package Solr into the server/webapps directory. See also server/README.txt.
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
Export control
|
|
157
|
+
-------------------------------------------------
|
|
158
|
+
This distribution includes cryptographic software. The country in
|
|
159
|
+
which you currently reside may have restrictions on the import,
|
|
160
|
+
possession, use, and/or re-export to another country, of
|
|
161
|
+
encryption software. BEFORE using any encryption software, please
|
|
162
|
+
check your country's laws, regulations and policies concerning the
|
|
163
|
+
import, possession, or use, and re-export of encryption software, to
|
|
164
|
+
see if this is permitted. See <http://www.wassenaar.org/> for more
|
|
165
|
+
information.
|
|
166
|
+
|
|
167
|
+
The U.S. Government Department of Commerce, Bureau of Industry and
|
|
168
|
+
Security (BIS), has classified this software as Export Commodity
|
|
169
|
+
Control Number (ECCN) 5D002.C.1, which includes information security
|
|
170
|
+
software using or performing cryptographic functions with asymmetric
|
|
171
|
+
algorithms. The form and manner of this Apache Software Foundation
|
|
172
|
+
distribution makes it eligible for export under the License Exception
|
|
173
|
+
ENC Technology Software Unrestricted (TSU) exception (see the BIS
|
|
174
|
+
Export Administration Regulations, Section 740.13) for both object
|
|
175
|
+
code and source code.
|
|
176
|
+
|
|
177
|
+
The following provides more details on the included cryptographic
|
|
178
|
+
software:
|
|
179
|
+
Apache Solr uses the Apache Tika which uses the Bouncy Castle generic encryption libraries for
|
|
180
|
+
extracting text content and metadata from encrypted PDF files.
|
|
181
|
+
See http://www.bouncycastle.org/ for more details on Bouncy Castle.
|
data/solr/bin/post
CHANGED
|
@@ -34,7 +34,7 @@ SOLR_TIP=`dirname "$THIS_SCRIPT"`/..
|
|
|
34
34
|
SOLR_TIP=`cd "$SOLR_TIP"; pwd`
|
|
35
35
|
|
|
36
36
|
if [ -n "$SOLR_JAVA_HOME" ]; then
|
|
37
|
-
JAVA
|
|
37
|
+
JAVA="$SOLR_JAVA_HOME/bin/java"
|
|
38
38
|
elif [ -n "$JAVA_HOME" ]; then
|
|
39
39
|
for java in "$JAVA_HOME"/bin/amd64/java "$JAVA_HOME"/bin/java; do
|
|
40
40
|
if [ -x "$java" ]; then
|
|
@@ -47,12 +47,12 @@ else
|
|
|
47
47
|
fi
|
|
48
48
|
|
|
49
49
|
# test that Java exists and is executable on this server
|
|
50
|
-
$JAVA -version >/dev/null 2>&1 || { echo >&2 "Java is required to run this tool! Please install Java 8 or greater before running this script."; exit 1; }
|
|
50
|
+
"$JAVA" -version >/dev/null 2>&1 || { echo >&2 "Java is required to run this tool! Please install Java 8 or greater before running this script."; exit 1; }
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
# ===== post specific code
|
|
54
54
|
|
|
55
|
-
TOOL_JAR
|
|
55
|
+
TOOL_JAR=("$SOLR_TIP/dist"/solr-core-*.jar)
|
|
56
56
|
|
|
57
57
|
function print_usage() {
|
|
58
58
|
echo ""
|
|
@@ -66,7 +66,7 @@ function print_usage() {
|
|
|
66
66
|
echo " Solr options:"
|
|
67
67
|
echo " -url <base Solr update URL> (overrides collection, host, and port)"
|
|
68
68
|
echo " -host <host> (default: localhost)"
|
|
69
|
-
echo " -port <port> (default: 8983)"
|
|
69
|
+
echo " -p or -port <port> (default: 8983)"
|
|
70
70
|
echo " -commit yes|no (default: yes)"
|
|
71
71
|
# optimize intentionally omitted, but can be used as '-optimize yes' (default: no)
|
|
72
72
|
echo ""
|
|
@@ -92,7 +92,7 @@ function print_usage() {
|
|
|
92
92
|
echo "* XML files: $THIS_SCRIPT -c records article*.xml"
|
|
93
93
|
echo "* CSV file: $THIS_SCRIPT -c signals LATEST-signals.csv"
|
|
94
94
|
echo "* Directory of files: $THIS_SCRIPT -c myfiles ~/Documents"
|
|
95
|
-
echo "* Web crawl: $THIS_SCRIPT -c gettingstarted http://
|
|
95
|
+
echo "* Web crawl: $THIS_SCRIPT -c gettingstarted http://lucene.apache.org/solr -recursive 1 -delay 1"
|
|
96
96
|
echo "* Standard input (stdin): echo '{"commit": {}}' | $THIS_SCRIPT -c my_collection -type application/json -out yes -d"
|
|
97
97
|
echo "* Data as string: $THIS_SCRIPT -c signals -type text/csv -out yes -d $'id,value\n1,0.47'"
|
|
98
98
|
echo ""
|
|
@@ -104,8 +104,8 @@ if [[ $# -eq 1 && ("$1" == "-help" || "$1" == "-h" || "$1" == "-usage") ]]; then
|
|
|
104
104
|
fi
|
|
105
105
|
|
|
106
106
|
|
|
107
|
-
COLLECTION
|
|
108
|
-
PROPS=
|
|
107
|
+
COLLECTION="$DEFAULT_SOLR_COLLECTION"
|
|
108
|
+
PROPS=('-Dauto=yes')
|
|
109
109
|
RECURSIVE=""
|
|
110
110
|
FILES=()
|
|
111
111
|
URLS=()
|
|
@@ -118,7 +118,7 @@ while [ $# -gt 0 ]; do
|
|
|
118
118
|
if [[ -d "$1" ]]; then
|
|
119
119
|
# Directory
|
|
120
120
|
# echo "$1: DIRECTORY"
|
|
121
|
-
RECURSIVE=
|
|
121
|
+
RECURSIVE=yes
|
|
122
122
|
FILES+=("$1")
|
|
123
123
|
elif [[ -f "$1" ]]; then
|
|
124
124
|
# File
|
|
@@ -129,12 +129,16 @@ while [ $# -gt 0 ]; do
|
|
|
129
129
|
# echo "$1: URL"
|
|
130
130
|
URLS+=("$1")
|
|
131
131
|
else
|
|
132
|
-
if [[ $1 == -* ]]; then
|
|
133
|
-
if [[ $1 == "-c" ]]; then
|
|
132
|
+
if [[ "$1" == -* ]]; then
|
|
133
|
+
if [[ "$1" == "-c" ]]; then
|
|
134
134
|
# Special case, pull out collection name
|
|
135
135
|
shift
|
|
136
|
-
COLLECTION
|
|
137
|
-
elif [[
|
|
136
|
+
COLLECTION="$1"
|
|
137
|
+
elif [[ "$1" == "-p" ]]; then
|
|
138
|
+
# -p alias for -port for convenience and compatibility with `bin/solr start`
|
|
139
|
+
shift
|
|
140
|
+
PROPS+=("-Dport=$1")
|
|
141
|
+
elif [[ ("$1" == "-d" || "$1" == "--data" || "$1" == "-") ]]; then
|
|
138
142
|
if [[ -s /dev/stdin ]]; then
|
|
139
143
|
MODE="stdin"
|
|
140
144
|
else
|
|
@@ -148,10 +152,13 @@ while [ $# -gt 0 ]; do
|
|
|
148
152
|
fi
|
|
149
153
|
fi
|
|
150
154
|
else
|
|
151
|
-
key
|
|
155
|
+
key="${1:1}"
|
|
152
156
|
shift
|
|
153
157
|
# echo "$1: PROP"
|
|
154
|
-
PROPS
|
|
158
|
+
PROPS+=("-D$key=$1")
|
|
159
|
+
if [[ "$key" == "url" ]]; then
|
|
160
|
+
SOLR_URL=$1
|
|
161
|
+
fi
|
|
155
162
|
fi
|
|
156
163
|
else
|
|
157
164
|
echo -e "\nUnrecognized argument: $1\n"
|
|
@@ -163,8 +170,8 @@ while [ $# -gt 0 ]; do
|
|
|
163
170
|
done
|
|
164
171
|
|
|
165
172
|
# Check for errors
|
|
166
|
-
if [[ $COLLECTION == "" ]]; then
|
|
167
|
-
echo -e "\nCollection must be specified. Use -c <collection name> or set DEFAULT_SOLR_COLLECTION in your environment.\n"
|
|
173
|
+
if [[ $COLLECTION == "" && $SOLR_URL == "" ]]; then
|
|
174
|
+
echo -e "\nCollection or URL must be specified. Use -c <collection name> or set DEFAULT_SOLR_COLLECTION in your environment, or use -url instead.\n"
|
|
168
175
|
echo -e "See '$THIS_SCRIPT -h' for usage instructions.\n"
|
|
169
176
|
exit 1
|
|
170
177
|
fi
|
|
@@ -208,10 +215,13 @@ else
|
|
|
208
215
|
PARAMS=("${ARGS[@]}")
|
|
209
216
|
fi
|
|
210
217
|
|
|
211
|
-
PROPS
|
|
218
|
+
PROPS+=("-Dc=$COLLECTION" "-Ddata=$MODE")
|
|
219
|
+
if [[ -n "$RECURSIVE" ]]; then
|
|
220
|
+
PROPS+=('-Drecursive=yes')
|
|
221
|
+
fi
|
|
212
222
|
|
|
213
|
-
echo "$JAVA" -classpath $TOOL_JAR $PROPS org.apache.solr.util.SimplePostTool "${PARAMS[@]}"
|
|
214
|
-
"$JAVA" -classpath $TOOL_JAR $PROPS org.apache.solr.util.SimplePostTool "${PARAMS[@]}"
|
|
223
|
+
echo "$JAVA" -classpath "${TOOL_JAR[0]}" "${PROPS[@]}" org.apache.solr.util.SimplePostTool "${PARAMS[@]}"
|
|
224
|
+
"$JAVA" -classpath "${TOOL_JAR[0]}" "${PROPS[@]}" org.apache.solr.util.SimplePostTool "${PARAMS[@]}"
|
|
215
225
|
|
|
216
226
|
# post smoker:
|
|
217
227
|
# bin/post -c signals -out yes -type application/json -d '[{"id": 2, "val": 0.47}]'
|