sunspot_solr 2.2.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +1 -0
- data/Gemfile +1 -1
- data/Rakefile +9 -0
- data/bin/sunspot-solr +2 -10
- data/lib/sunspot/solr/installer.rb +66 -8
- data/lib/sunspot/solr/java.rb +17 -4
- data/lib/sunspot/solr/server.rb +25 -37
- data/solr/.gitignore +2 -0
- data/solr/README.txt +181 -42
- data/solr/bin/init.d/solr +78 -0
- data/solr/bin/install_solr_service.sh +270 -0
- data/solr/bin/oom_solr.sh +30 -0
- data/solr/bin/post +228 -0
- data/solr/bin/solr +1350 -0
- data/solr/bin/solr.cmd +1230 -0
- data/solr/bin/solr.in.cmd +99 -0
- data/solr/bin/solr.in.sh +119 -0
- data/solr/server/README.txt +110 -0
- data/solr/server/contexts/solr-jetty-context.xml +8 -0
- data/solr/server/etc/jetty-http.xml +47 -0
- data/solr/{etc/jetty.xml → server/etc/jetty-https-ssl.xml} +175 -167
- 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 -0
- data/solr/{etc → server/etc}/webdefault.xml +527 -527
- data/solr/server/lib/ext/jcl-over-slf4j-1.7.7.jar +0 -0
- data/solr/server/lib/ext/jul-to-slf4j-1.7.7.jar +0 -0
- data/solr/server/lib/ext/log4j-1.2.17.jar +0 -0
- data/solr/server/lib/ext/slf4j-api-1.7.7.jar +0 -0
- data/solr/server/lib/ext/slf4j-log4j12-1.7.7.jar +0 -0
- 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 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/antlr-runtime-3.5.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/asm-4.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/asm-commons-4.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/commons-cli-1.2.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/commons-codec-1.10.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/commons-collections-3.2.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/commons-configuration-1.6.jar +0 -0
- 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/commons-fileupload-1.2.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/commons-io-2.4.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/commons-lang-2.6.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/concurrentlinkedhashmap-lru-1.2.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/dom4j-1.6.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/guava-14.0.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/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/hppc-0.5.2.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/joda-time-2.2.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-analyzers-common-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-analyzers-kuromoji-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/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.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/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.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/noggit-0.6.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/protobuf-java-2.5.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/spatial4j-0.4.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/stax2-api-3.1.4.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/lib/woodstox-core-asl-4.4.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/zookeeper-3.4.6.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/web.xml +169 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/weblogic.xml +28 -0
- data/solr/server/solr-webapp/webapp/admin.html +164 -0
- 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 -0
- data/solr/server/solr-webapp/webapp/css/styles/analysis.css +311 -0
- data/solr/server/solr-webapp/webapp/css/styles/cloud.css +410 -0
- data/solr/server/solr-webapp/webapp/css/styles/common.css +701 -0
- data/solr/server/solr-webapp/webapp/css/styles/cores.css +244 -0
- data/solr/server/solr-webapp/webapp/css/styles/dashboard.css +155 -0
- data/solr/server/solr-webapp/webapp/css/styles/dataimport.css +403 -0
- data/solr/server/solr-webapp/webapp/css/styles/documents.css +197 -0
- data/solr/server/solr-webapp/webapp/css/styles/files.css +54 -0
- data/solr/server/solr-webapp/webapp/css/styles/index.css +207 -0
- data/solr/server/solr-webapp/webapp/css/styles/java-properties.css +52 -0
- data/solr/server/solr-webapp/webapp/css/styles/logging.css +391 -0
- data/solr/server/solr-webapp/webapp/css/styles/menu.css +329 -0
- data/solr/server/solr-webapp/webapp/css/styles/plugins.css +195 -0
- data/solr/server/solr-webapp/webapp/css/styles/query.css +173 -0
- data/solr/server/solr-webapp/webapp/css/styles/replication.css +515 -0
- data/solr/server/solr-webapp/webapp/css/styles/schema-browser.css +578 -0
- data/solr/server/solr-webapp/webapp/css/styles/segments.css +145 -0
- data/solr/server/solr-webapp/webapp/css/styles/threads.css +172 -0
- data/solr/server/solr-webapp/webapp/favicon.ico +0 -0
- data/solr/server/solr-webapp/webapp/img/ZeroClipboard.swf +0 -0
- data/solr/server/solr-webapp/webapp/img/chosen-sprite-2x.png +0 -0
- data/solr/server/solr-webapp/webapp/img/chosen-sprite.png +0 -0
- data/solr/server/solr-webapp/webapp/img/div.gif +0 -0
- data/solr/server/solr-webapp/webapp/img/favicon.ico +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/7z.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/README +27 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/ai.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/aiff.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/asc.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/audio.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/bin.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/bz2.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/c.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/cfc.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/cfm.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/chm.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/class.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/conf.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/cpp.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/cs.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/css.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/csv.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/deb.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/divx.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/doc.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/dot.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/eml.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/enc.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/file.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/gif.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/gz.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/hlp.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/htm.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/html.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/image.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/iso.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/jar.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/java.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/jpeg.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/jpg.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/js.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/lua.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/m.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/mm.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/mov.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/mp3.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/mpg.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/odc.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/odf.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/odg.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/odi.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/odp.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/ods.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/odt.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/ogg.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/pdf.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/pgp.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/php.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/pl.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/png.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/ppt.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/ps.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/py.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/ram.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/rar.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/rb.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/rm.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/rpm.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/rtf.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/sig.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/sql.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/swf.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/sxc.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/sxd.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/sxi.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/sxw.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/tar.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/tex.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/tgz.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/txt.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/vcf.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/video.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/vsd.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/wav.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/wma.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/wmv.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/xls.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/xml.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/xpi.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/xvid.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/zip.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/arrow-000-small.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/arrow-circle.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/arrow-switch.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/asterisk.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/battery.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/block-small.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/block.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/book-open-text.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/box.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/bug.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/chart.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/chevron-small-expand.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/chevron-small.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/clipboard-list.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/clipboard-paste-document-text.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/clipboard-paste.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/clock-select-remain.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/clock-select.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/construction.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/cross-0.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/cross-1.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/cross-button.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/cross.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/dashboard.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/database--plus.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/database.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/databases.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/disk-black.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/document-convert.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/document-import.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/document-list.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/document-text.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/documents-stack.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/download-cloud.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/drive-upload.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/exclamation-button.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/eye.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/folder-export.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/folder-tree.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/folder.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/funnel-small.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/funnel.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/gear.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/globe-network.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/globe.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/hammer-screwdriver.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/hammer.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/hand.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/highlighter-text.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/home.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/hourglass--exclamation.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/hourglass.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/inbox-document-text.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/information-button.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/information-small.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/information-white.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/information.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/jar.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/magnifier.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/mail.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/memory.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/minus-button.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/molecule.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/network-cloud.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/network-status-away.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/network-status-busy.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/network-status-offline.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/network-status.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/network.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/node-design.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/node-master.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/node-select.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/node-slave.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/node.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/pencil-small.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/pencil.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/plus-button.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/processor.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/prohibition.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/property.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/question-small-white.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/question-white.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/question.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/receipt-invoice.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/receipt.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/script-code.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/server-cast.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/server.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/sitemap.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/slash.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/status-away.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/status-busy.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/status-offline.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/status.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/system-monitor--exclamation.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/system-monitor.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/table.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/terminal.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/tick-circle.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/tick-red.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/tick.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/toggle-small-expand.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/toggle-small.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/toolbox.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/ui-accordion.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/ui-address-bar.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/ui-check-box-uncheck.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/ui-check-box.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/ui-radio-button-uncheck.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/ui-radio-button.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/ui-text-field-select.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/users.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/wooden-box.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/zone.png +0 -0
- data/solr/server/solr-webapp/webapp/img/loader-light.gif +0 -0
- data/solr/server/solr-webapp/webapp/img/loader.gif +0 -0
- data/solr/server/solr-webapp/webapp/img/lucene-ico.png +0 -0
- data/solr/server/solr-webapp/webapp/img/solr-ico.png +0 -0
- data/solr/server/solr-webapp/webapp/img/solr.svg +39 -0
- data/solr/server/solr-webapp/webapp/img/tree.png +0 -0
- 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 -0
- data/solr/server/solr-webapp/webapp/js/lib/chosen.js +982 -0
- data/solr/server/solr-webapp/webapp/js/lib/console.js +29 -0
- data/solr/server/solr-webapp/webapp/js/lib/d3.js +9373 -0
- data/solr/server/solr-webapp/webapp/js/lib/highlight.js +31 -0
- data/solr/server/solr-webapp/webapp/js/lib/jquery-1.7.2.min.js +30 -0
- data/solr/server/solr-webapp/webapp/js/lib/jquery.ajaxfileupload.js +184 -0
- data/solr/server/solr-webapp/webapp/js/lib/jquery.blockUI.js +523 -0
- data/solr/server/solr-webapp/webapp/js/lib/jquery.cookie.js +71 -0
- data/solr/server/solr-webapp/webapp/js/lib/jquery.form.js +806 -0
- data/solr/server/solr-webapp/webapp/js/lib/jquery.jstree.js +3534 -0
- data/solr/server/solr-webapp/webapp/js/lib/jquery.sammy.js +1863 -0
- data/solr/server/solr-webapp/webapp/js/lib/jquery.timeago.js +189 -0
- data/solr/server/solr-webapp/webapp/js/lib/linker.js +48 -0
- data/solr/server/solr-webapp/webapp/js/lib/naturalSort.js +82 -0
- data/solr/server/solr-webapp/webapp/js/lib/order.js +216 -0
- data/solr/server/solr-webapp/webapp/js/main.js +60 -0
- data/solr/server/solr-webapp/webapp/js/require.js +11349 -0
- data/solr/server/solr-webapp/webapp/js/scripts/analysis.js +545 -0
- data/solr/server/solr-webapp/webapp/js/scripts/app.js +680 -0
- data/solr/server/solr-webapp/webapp/js/scripts/cloud.js +877 -0
- data/solr/server/solr-webapp/webapp/js/scripts/cores.js +719 -0
- data/solr/server/solr-webapp/webapp/js/scripts/dashboard.js +562 -0
- data/solr/server/solr-webapp/webapp/js/scripts/dataimport.js +812 -0
- data/solr/server/solr-webapp/webapp/js/scripts/documents.js +370 -0
- data/solr/server/solr-webapp/webapp/js/scripts/files.js +265 -0
- data/solr/server/solr-webapp/webapp/js/scripts/index.js +340 -0
- data/solr/server/solr-webapp/webapp/js/scripts/java-properties.js +106 -0
- data/solr/server/solr-webapp/webapp/js/scripts/logging.js +578 -0
- data/solr/server/solr-webapp/webapp/js/scripts/ping.js +72 -0
- data/solr/server/solr-webapp/webapp/js/scripts/plugins.js +462 -0
- data/solr/server/solr-webapp/webapp/js/scripts/query.js +229 -0
- data/solr/server/solr-webapp/webapp/js/scripts/replication.js +527 -0
- data/solr/server/solr-webapp/webapp/js/scripts/schema-browser.js +1229 -0
- data/solr/server/solr-webapp/webapp/js/scripts/segments.js +206 -0
- data/solr/server/solr-webapp/webapp/js/scripts/threads.js +158 -0
- 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 -0
- data/solr/server/solr-webapp/webapp/tpl/cloud.html +87 -0
- data/solr/server/solr-webapp/webapp/tpl/cores.html +226 -0
- data/solr/server/solr-webapp/webapp/tpl/dashboard.html +201 -0
- data/solr/server/solr-webapp/webapp/tpl/dataimport.html +183 -0
- data/solr/server/solr-webapp/webapp/tpl/documents.html +107 -0
- data/solr/server/solr-webapp/webapp/tpl/files.html +44 -0
- data/solr/server/solr-webapp/webapp/tpl/index.html +250 -0
- data/solr/server/solr-webapp/webapp/tpl/logging.html +23 -0
- data/solr/server/solr-webapp/webapp/tpl/plugins.html +39 -0
- data/solr/server/solr-webapp/webapp/tpl/query.html +361 -0
- data/solr/server/solr-webapp/webapp/tpl/replication.html +216 -0
- data/solr/server/solr-webapp/webapp/tpl/schema-browser.html +192 -0
- data/solr/server/solr-webapp/webapp/tpl/segments.html +49 -0
- data/solr/server/solr-webapp/webapp/tpl/threads.html +56 -0
- data/solr/server/solr/README.txt +77 -0
- data/solr/server/solr/solr.xml +51 -0
- data/solr/server/solr/zoo.cfg +17 -0
- data/solr/server/start.jar +0 -0
- data/solr/solr/README.txt +77 -0
- data/solr/solr/configsets/sunspot/conf/_rest_managed.json +1 -0
- data/solr/solr/{conf → configsets/sunspot/conf}/admin-extra.html +0 -0
- data/solr/solr/configsets/sunspot/conf/currency.xml +67 -0
- data/solr/solr/{conf → configsets/sunspot/conf}/elevate.xml +0 -0
- data/solr/solr/{conf/stopwords.txt → configsets/sunspot/conf/lang/stopwords_en.txt} +1 -5
- data/solr/solr/{conf → configsets/sunspot/conf}/mapping-ISOLatin1Accent.txt +0 -0
- data/solr/solr/{conf → configsets/sunspot/conf}/protwords.txt +0 -0
- data/solr/solr/{conf → configsets/sunspot/conf}/schema.xml +38 -35
- data/solr/solr/{conf → configsets/sunspot/conf}/scripts.conf +0 -0
- data/solr/solr/{conf → configsets/sunspot/conf}/solrconfig.xml +271 -320
- data/solr/solr/{conf → configsets/sunspot/conf}/spellings.txt +0 -0
- data/solr/solr/{conf → configsets/sunspot/conf}/synonyms.txt +3 -5
- data/solr/solr/default/core.properties +3 -0
- data/solr/solr/development/core.properties +3 -0
- data/solr/solr/solr.xml +49 -6
- data/solr/solr/test/core.properties +3 -0
- data/solr/solr/zoo.cfg +17 -0
- data/spec/installer_spec.rb +82 -0
- data/spec/java_spec.rb +58 -0
- data/spec/server_spec.rb +36 -79
- data/spec/spec_helper.rb +4 -16
- data/sunspot_solr.gemspec +3 -7
- metadata +496 -67
- data/lib/sunspot/solr/installer/config_installer.rb +0 -53
- data/lib/sunspot/solr/installer/task_helper.rb +0 -13
- data/solr/contexts/solr.xml +0 -7
- data/solr/lib/jetty-continuation-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-deploy-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-http-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-io-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-jmx-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-security-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-server-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-servlet-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-util-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-webapp-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-xml-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jsp-2.1/ant-1.6.5.jar +0 -0
- data/solr/lib/jsp-2.1/core-3.1.1.jar +0 -0
- data/solr/lib/jsp-2.1/jsp-2.1.jar +0 -0
- data/solr/lib/jsp-2.1/jsp-api-2.1.jar +0 -0
- data/solr/lib/servlet-api-3.0.jar +0 -0
- data/solr/solr/conf/xslt/example.xsl +0 -132
- data/solr/solr/conf/xslt/example_atom.xsl +0 -67
- data/solr/solr/conf/xslt/example_rss.xsl +0 -66
- data/solr/solr/conf/xslt/luke.xsl +0 -337
- data/solr/solr/default/README.txt +0 -54
- data/solr/start.jar +0 -0
- data/solr/webapps/solr.war +0 -0
@@ -0,0 +1,99 @@
|
|
1
|
+
@REM
|
2
|
+
@REM Licensed to the Apache Software Foundation (ASF) under one or more
|
3
|
+
@REM contributor license agreements. See the NOTICE file distributed with
|
4
|
+
@REM this work for additional information regarding copyright ownership.
|
5
|
+
@REM The ASF licenses this file to You under the Apache License, Version 2.0
|
6
|
+
@REM (the "License"); you may not use this file except in compliance with
|
7
|
+
@REM the License. You may obtain a copy of the License at
|
8
|
+
@REM
|
9
|
+
@REM http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
@REM
|
11
|
+
@REM Unless required by applicable law or agreed to in writing, software
|
12
|
+
@REM distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
@REM See the License for the specific language governing permissions and
|
15
|
+
@REM limitations under the License.
|
16
|
+
|
17
|
+
@echo off
|
18
|
+
|
19
|
+
REM By default the script will use JAVA_HOME to determine which java
|
20
|
+
REM to use, but you can set a specific path for Solr to use without
|
21
|
+
REM affecting other Java applications on your server/workstation.
|
22
|
+
REM set SOLR_JAVA_HOME=
|
23
|
+
|
24
|
+
REM Increase Java Min/Max Heap as needed to support your indexing / query needs
|
25
|
+
set SOLR_JAVA_MEM=-Xms512m -Xmx512m
|
26
|
+
|
27
|
+
REM Enable verbose GC logging (Java 9+)
|
28
|
+
REM set GC_LOG_OPTS=-Xlog:gc*
|
29
|
+
|
30
|
+
REM Enable verbose GC logging (Java <9)
|
31
|
+
REM set GC_LOG_OPTS=-verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime
|
32
|
+
|
33
|
+
REM These GC settings have shown to work well for a number of common Solr workloads
|
34
|
+
set GC_TUNE=-XX:NewRatio=3 ^
|
35
|
+
-XX:SurvivorRatio=4 ^
|
36
|
+
-XX:TargetSurvivorRatio=90 ^
|
37
|
+
-XX:MaxTenuringThreshold=8 ^
|
38
|
+
-XX:+UseConcMarkSweepGC ^
|
39
|
+
-XX:ConcGCThreads=4 -XX:ParallelGCThreads=4 ^
|
40
|
+
-XX:+CMSScavengeBeforeRemark ^
|
41
|
+
-XX:PretenureSizeThreshold=64m ^
|
42
|
+
-XX:+UseCMSInitiatingOccupancyOnly ^
|
43
|
+
-XX:CMSInitiatingOccupancyFraction=50 ^
|
44
|
+
-XX:CMSMaxAbortablePrecleanTime=6000 ^
|
45
|
+
-XX:+CMSParallelRemarkEnabled ^
|
46
|
+
-XX:+ParallelRefProcEnabled
|
47
|
+
|
48
|
+
REM Set the ZooKeeper connection string if using an external ZooKeeper ensemble
|
49
|
+
REM e.g. host1:2181,host2:2181/chroot
|
50
|
+
REM Leave empty if not using SolrCloud
|
51
|
+
REM set ZK_HOST=
|
52
|
+
|
53
|
+
REM Set the ZooKeeper client timeout (for SolrCloud mode)
|
54
|
+
REM set ZK_CLIENT_TIMEOUT=15000
|
55
|
+
|
56
|
+
REM By default the start script uses "localhost"; override the hostname here
|
57
|
+
REM for production SolrCloud environments to control the hostname exposed to cluster state
|
58
|
+
REM set SOLR_HOST=192.168.1.1
|
59
|
+
|
60
|
+
REM By default the start script uses UTC; override the timezone if needed
|
61
|
+
REM set SOLR_TIMEZONE=UTC
|
62
|
+
|
63
|
+
REM Set to true to activate the JMX RMI connector to allow remote JMX client applications
|
64
|
+
REM to monitor the JVM hosting Solr; set to "false" to disable that behavior
|
65
|
+
REM (false is recommended in production environments)
|
66
|
+
set ENABLE_REMOTE_JMX_OPTS=false
|
67
|
+
|
68
|
+
REM The script will use SOLR_PORT+10000 for the RMI_PORT or you can set it here
|
69
|
+
REM set RMI_PORT=18983
|
70
|
+
|
71
|
+
REM Anything you add to the SOLR_OPTS variable will be included in the java
|
72
|
+
REM start command line as-is, in ADDITION to other options. If you specify the
|
73
|
+
REM -a option on start script, those options will be appended as well. Examples:
|
74
|
+
REM set SOLR_OPTS=%SOLR_OPTS% -Dsolr.autoSoftCommit.maxTime=3000
|
75
|
+
REM set SOLR_OPTS=%SOLR_OPTS% -Dsolr.autoCommit.maxTime=60000
|
76
|
+
REM set SOLR_OPTS=%SOLR_OPTS% -Dsolr.clustering.enabled=true
|
77
|
+
|
78
|
+
REM Path to a directory for Solr to store cores and their data. By default, Solr will use server\solr
|
79
|
+
REM If solr.xml is not stored in ZooKeeper, this directory needs to contain solr.xml
|
80
|
+
REM set SOLR_HOME=
|
81
|
+
|
82
|
+
REM Sets the port Solr binds to, default is 8983
|
83
|
+
REM set SOLR_PORT=8983
|
84
|
+
|
85
|
+
REM Uncomment to set SSL-related system properties
|
86
|
+
REM Be sure to update the paths to the correct keystore for your environment
|
87
|
+
REM set SOLR_SSL_KEY_STORE=etc/solr-ssl.keystore.jks
|
88
|
+
REM set SOLR_SSL_KEY_STORE_PASSWORD=secret
|
89
|
+
REM set SOLR_SSL_TRUST_STORE=etc/solr-ssl.keystore.jks
|
90
|
+
REM set SOLR_SSL_TRUST_STORE_PASSWORD=secret
|
91
|
+
REM set SOLR_SSL_NEED_CLIENT_AUTH=false
|
92
|
+
REM set SOLR_SSL_WANT_CLIENT_AUTH=false
|
93
|
+
|
94
|
+
REM Uncomment if you want to override previously defined SSL values for HTTP client
|
95
|
+
REM otherwise keep them commented and the above values will automatically be set for HTTP clients
|
96
|
+
REM set SOLR_SSL_CLIENT_KEY_STORE=
|
97
|
+
REM set SOLR_SSL_CLIENT_KEY_STORE_PASSWORD=
|
98
|
+
REM setSOLR_SSL_CLIENT_TRUST_STORE=
|
99
|
+
REM setSOLR_SSL_CLIENT_TRUST_STORE_PASSWORD=
|
data/solr/bin/solr.in.sh
ADDED
@@ -0,0 +1,119 @@
|
|
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
|
+
# By default the script will use JAVA_HOME to determine which java
|
17
|
+
# to use, but you can set a specific path for Solr to use without
|
18
|
+
# affecting other Java applications on your server/workstation.
|
19
|
+
#SOLR_JAVA_HOME=""
|
20
|
+
|
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"
|
27
|
+
|
28
|
+
# Enable verbose GC logging (Java 9+)
|
29
|
+
#GC_LOG_OPTS="-Xlog:gc*"
|
30
|
+
|
31
|
+
# Enable verbose GC logging (Java <9)
|
32
|
+
#GC_LOG_OPTS="-verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails \
|
33
|
+
#-XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime"
|
34
|
+
|
35
|
+
# These GC settings have shown to work well for a number of common Solr workloads
|
36
|
+
GC_TUNE="-XX:NewRatio=3 \
|
37
|
+
-XX:SurvivorRatio=4 \
|
38
|
+
-XX:TargetSurvivorRatio=90 \
|
39
|
+
-XX:MaxTenuringThreshold=8 \
|
40
|
+
-XX:+UseConcMarkSweepGC \
|
41
|
+
-XX:ConcGCThreads=4 -XX:ParallelGCThreads=4 \
|
42
|
+
-XX:+CMSScavengeBeforeRemark \
|
43
|
+
-XX:PretenureSizeThreshold=64m \
|
44
|
+
-XX:+UseCMSInitiatingOccupancyOnly \
|
45
|
+
-XX:CMSInitiatingOccupancyFraction=50 \
|
46
|
+
-XX:CMSMaxAbortablePrecleanTime=6000 \
|
47
|
+
-XX:+CMSParallelRemarkEnabled \
|
48
|
+
-XX:+ParallelRefProcEnabled"
|
49
|
+
|
50
|
+
# Set the ZooKeeper connection string if using an external ZooKeeper ensemble
|
51
|
+
# e.g. host1:2181,host2:2181/chroot
|
52
|
+
# Leave empty if not using SolrCloud
|
53
|
+
#ZK_HOST=""
|
54
|
+
|
55
|
+
# Set the ZooKeeper client timeout (for SolrCloud mode)
|
56
|
+
#ZK_CLIENT_TIMEOUT="15000"
|
57
|
+
|
58
|
+
# By default the start script uses "localhost"; override the hostname here
|
59
|
+
# for production SolrCloud environments to control the hostname exposed to cluster state
|
60
|
+
#SOLR_HOST="192.168.1.1"
|
61
|
+
|
62
|
+
# By default the start script uses UTC; override the timezone if needed
|
63
|
+
#SOLR_TIMEZONE="UTC"
|
64
|
+
|
65
|
+
# Set to true to activate the JMX RMI connector to allow remote JMX client applications
|
66
|
+
# to monitor the JVM hosting Solr; set to "false" to disable that behavior
|
67
|
+
# (false is recommended in production environments)
|
68
|
+
ENABLE_REMOTE_JMX_OPTS="false"
|
69
|
+
|
70
|
+
# The script will use SOLR_PORT+10000 for the RMI_PORT or you can set it here
|
71
|
+
# RMI_PORT=18983
|
72
|
+
|
73
|
+
# Anything you add to the SOLR_OPTS variable will be included in the java
|
74
|
+
# start command line as-is, in ADDITION to other options. If you specify the
|
75
|
+
# -a option on start script, those options will be appended as well. Examples:
|
76
|
+
#SOLR_OPTS="$SOLR_OPTS -Dsolr.autoSoftCommit.maxTime=3000"
|
77
|
+
#SOLR_OPTS="$SOLR_OPTS -Dsolr.autoCommit.maxTime=60000"
|
78
|
+
#SOLR_OPTS="$SOLR_OPTS -Dsolr.clustering.enabled=true"
|
79
|
+
|
80
|
+
# Location where the bin/solr script will save PID files for running instances
|
81
|
+
# If not set, the script will create PID files in $SOLR_TIP/bin
|
82
|
+
#SOLR_PID_DIR=
|
83
|
+
|
84
|
+
# Path to a directory for Solr to store cores and their data. By default, Solr will use server/solr
|
85
|
+
# If solr.xml is not stored in ZooKeeper, this directory needs to contain solr.xml
|
86
|
+
#SOLR_HOME=
|
87
|
+
|
88
|
+
# Solr provides a default Log4J configuration properties file in server/resources
|
89
|
+
# however, you may want to customize the log settings and file appender location
|
90
|
+
# so you can point the script to use a different log4j.properties file
|
91
|
+
#LOG4J_PROPS=/var/solr/log4j.properties
|
92
|
+
|
93
|
+
# Location where Solr should write logs to; should agree with the file appender
|
94
|
+
# settings in server/resources/log4j.properties
|
95
|
+
#SOLR_LOGS_DIR=
|
96
|
+
|
97
|
+
# Sets the port Solr binds to, default is 8983
|
98
|
+
#SOLR_PORT=8983
|
99
|
+
|
100
|
+
# Uncomment to set SSL-related system properties
|
101
|
+
# Be sure to update the paths to the correct keystore for your environment
|
102
|
+
#SOLR_SSL_KEY_STORE=etc/solr-ssl.keystore.jks
|
103
|
+
#SOLR_SSL_KEY_STORE_PASSWORD=secret
|
104
|
+
#SOLR_SSL_TRUST_STORE=etc/solr-ssl.keystore.jks
|
105
|
+
#SOLR_SSL_TRUST_STORE_PASSWORD=secret
|
106
|
+
#SOLR_SSL_NEED_CLIENT_AUTH=false
|
107
|
+
#SOLR_SSL_WANT_CLIENT_AUTH=false
|
108
|
+
|
109
|
+
# Uncomment if you want to override previously defined SSL values for HTTP client
|
110
|
+
# otherwise keep them commented and the above values will automatically be set for HTTP clients
|
111
|
+
#SOLR_SSL_CLIENT_KEY_STORE=
|
112
|
+
#SOLR_SSL_CLIENT_KEY_STORE_PASSWORD=
|
113
|
+
#SOLR_SSL_CLIENT_TRUST_STORE=
|
114
|
+
#SOLR_SSL_CLIENT_TRUST_STORE_PASSWORD=
|
115
|
+
|
116
|
+
# Settings for authentication
|
117
|
+
#SOLR_AUTHENTICATION_CLIENT_CONFIGURER=
|
118
|
+
#SOLR_AUTHENTICATION_OPTS=
|
119
|
+
|
@@ -0,0 +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
|
+
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
|
+
|
@@ -0,0 +1,8 @@
|
|
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,167 +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
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
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
|
-
</Arg>
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
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>
|