sunspot_solr 2.2.0 → 2.2.1
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 +7 -0
- data/bin/sunspot-solr +0 -4
- data/lib/sunspot/solr/installer.rb +1 -1
- data/lib/sunspot/solr/installer/config_installer.rb +55 -21
- data/lib/sunspot/solr/java.rb +1 -1
- data/lib/sunspot/solr/server.rb +21 -21
- data/solr/.gitignore +2 -0
- data/solr/README.txt +157 -18
- 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 +218 -0
- data/solr/bin/solr +1531 -0
- data/solr/bin/solr.cmd +1384 -0
- data/solr/bin/solr.in.cmd +89 -0
- data/solr/bin/solr.in.sh +103 -0
- data/solr/server/README.txt +113 -0
- data/solr/{contexts/solr.xml → server/contexts/solr-jetty-context.xml} +1 -0
- data/solr/server/etc/jetty-https-ssl.xml +159 -0
- data/solr/{etc → server/etc}/jetty.xml +0 -0
- data/solr/{etc → server/etc}/webdefault.xml +1 -1
- 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/{lib/jetty-continuation-8.1.8.v20121106.jar → server/lib/jetty-continuation-8.1.10.v20130312.jar} +0 -0
- data/solr/{lib/jetty-deploy-8.1.8.v20121106.jar → 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/{lib/jetty-io-8.1.8.v20121106.jar → server/lib/jetty-io-8.1.10.v20130312.jar} +0 -0
- data/solr/{lib/jetty-jmx-8.1.8.v20121106.jar → server/lib/jetty-jmx-8.1.10.v20130312.jar} +0 -0
- data/solr/{lib/jetty-security-8.1.8.v20121106.jar → 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/{lib/jetty-util-8.1.8.v20121106.jar → server/lib/jetty-util-8.1.10.v20130312.jar} +0 -0
- data/solr/{lib/jetty-webapp-8.1.8.v20121106.jar → 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/{lib → server/lib}/servlet-api-3.0.jar +0 -0
- data/solr/server/resources/log4j.properties +24 -0
- data/solr/server/solr-webapp/webapp/.gitignore +1 -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-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.3.0.jar +0 -0
- 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/hppc-0.5.2.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/joda-time-2.2.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-analyzers-common-5.0.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-analyzers-kuromoji-5.0.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-analyzers-phonetic-5.0.0.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-expressions-5.0.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-grouping-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-queryparser-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/noggit-0.6.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/protobuf-java-2.5.0.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/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/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 +181 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/weblogic.xml +28 -0
- data/solr/server/solr-webapp/webapp/admin.html +163 -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 +328 -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/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.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/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/order.js +216 -0
- data/solr/server/solr-webapp/webapp/js/main.js +58 -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 +679 -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 +576 -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/threads.js +158 -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/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/server/webapps/solr.war +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 +36 -33
- data/solr/solr/{conf → configsets/sunspot/conf}/scripts.conf +0 -0
- data/solr/solr/{conf → configsets/sunspot/conf}/solrconfig.xml +269 -318
- 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/server_spec.rb +0 -6
- data/sunspot_solr.gemspec +1 -1
- metadata +390 -48
- data/solr/lib/jetty-http-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-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/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,270 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
3
|
+
# contributor license agreements. See the NOTICE file distributed with
|
|
4
|
+
# this work for additional information regarding copyright ownership.
|
|
5
|
+
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
6
|
+
# (the "License"); you may not use this file except in compliance with
|
|
7
|
+
# the License. You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
if [[ $EUID -ne 0 ]]; then
|
|
18
|
+
echo -e "\nERROR: This script must be run as root\n" 1>&2
|
|
19
|
+
exit 1
|
|
20
|
+
fi
|
|
21
|
+
|
|
22
|
+
print_usage() {
|
|
23
|
+
ERROR_MSG="$1"
|
|
24
|
+
|
|
25
|
+
if [ "$ERROR_MSG" != "" ]; then
|
|
26
|
+
echo -e "\nERROR: $ERROR_MSG\n" 1>&2
|
|
27
|
+
fi
|
|
28
|
+
|
|
29
|
+
echo ""
|
|
30
|
+
echo "Usage: install_solr_service.sh path_to_solr_distribution_archive OPTIONS"
|
|
31
|
+
echo ""
|
|
32
|
+
echo " The first argument to the script must be a path to a Solr distribution archive, such as solr-5.0.0.tgz"
|
|
33
|
+
echo " (only .tgz or .zip are supported formats for the archive)"
|
|
34
|
+
echo ""
|
|
35
|
+
echo " Supported OPTIONS include:"
|
|
36
|
+
echo ""
|
|
37
|
+
echo " -d Directory for live / writable Solr files, such as logs, pid files, and index data; defaults to /var/solr"
|
|
38
|
+
echo ""
|
|
39
|
+
echo " -i Directory to extract the Solr installation archive; defaults to /opt/"
|
|
40
|
+
echo " The specified path must exist prior to using this script."
|
|
41
|
+
echo ""
|
|
42
|
+
echo " -p Port Solr should bind to; default is 8983"
|
|
43
|
+
echo ""
|
|
44
|
+
echo " -s Service name; defaults to solr"
|
|
45
|
+
echo ""
|
|
46
|
+
echo " -u User to own the Solr files and run the Solr process as; defaults to solr"
|
|
47
|
+
echo " This script will create the specified user account if it does not exist."
|
|
48
|
+
echo ""
|
|
49
|
+
echo " NOTE: Must be run as the root user"
|
|
50
|
+
echo ""
|
|
51
|
+
} # end print_usage
|
|
52
|
+
|
|
53
|
+
if [ -f "/proc/version" ]; then
|
|
54
|
+
proc_version=`cat /proc/version`
|
|
55
|
+
else
|
|
56
|
+
proc_version=`uname -a`
|
|
57
|
+
fi
|
|
58
|
+
|
|
59
|
+
if [[ $proc_version == *"Debian"* ]]; then
|
|
60
|
+
distro=Debian
|
|
61
|
+
elif [[ $proc_version == *"Red Hat"* ]]; then
|
|
62
|
+
distro=RedHat
|
|
63
|
+
elif [[ $proc_version == *"Ubuntu"* ]]; then
|
|
64
|
+
distro=Ubuntu
|
|
65
|
+
elif [[ $proc_version == *"SUSE"* ]]; then
|
|
66
|
+
distro=SUSE
|
|
67
|
+
else
|
|
68
|
+
echo -e "\nERROR: Your Linux distribution ($proc_version) not supported by this script!\nYou'll need to setup Solr as a service manually using the documentation provided in the Solr Reference Guide.\n" 1>&2
|
|
69
|
+
exit 1
|
|
70
|
+
fi
|
|
71
|
+
|
|
72
|
+
if [ -z "$1" ]; then
|
|
73
|
+
print_usage "Must specify the path to the Solr installation archive, such as solr-5.0.0.tgz"
|
|
74
|
+
exit 1
|
|
75
|
+
fi
|
|
76
|
+
|
|
77
|
+
SOLR_ARCHIVE=$1
|
|
78
|
+
if [ ! -f "$SOLR_ARCHIVE" ]; then
|
|
79
|
+
print_usage "Specified Solr installation archive $SOLR_ARCHIVE not found!"
|
|
80
|
+
exit 1
|
|
81
|
+
fi
|
|
82
|
+
|
|
83
|
+
# strip off path info
|
|
84
|
+
SOLR_INSTALL_FILE=${SOLR_ARCHIVE##*/}
|
|
85
|
+
is_tar=true
|
|
86
|
+
if [ ${SOLR_INSTALL_FILE: -4} == ".tgz" ]; then
|
|
87
|
+
SOLR_DIR=${SOLR_INSTALL_FILE%.tgz}
|
|
88
|
+
elif [ ${SOLR_INSTALL_FILE: -4} == ".zip" ]; then
|
|
89
|
+
SOLR_DIR=${SOLR_INSTALL_FILE%.zip}
|
|
90
|
+
is_tar=false
|
|
91
|
+
else
|
|
92
|
+
print_usage "Solr installation archive $SOLR_ARCHIVE is invalid, expected a .tgz or .zip file!"
|
|
93
|
+
exit 1
|
|
94
|
+
fi
|
|
95
|
+
|
|
96
|
+
if [ $# -gt 1 ]; then
|
|
97
|
+
shift
|
|
98
|
+
while true; do
|
|
99
|
+
case $1 in
|
|
100
|
+
-i)
|
|
101
|
+
if [[ -z "$2" || "${2:0:1}" == "-" ]]; then
|
|
102
|
+
print_usage "Directory path is required when using the $1 option!"
|
|
103
|
+
exit 1
|
|
104
|
+
fi
|
|
105
|
+
SOLR_EXTRACT_DIR=$2
|
|
106
|
+
shift 2
|
|
107
|
+
;;
|
|
108
|
+
-d)
|
|
109
|
+
if [[ -z "$2" || "${2:0:1}" == "-" ]]; then
|
|
110
|
+
print_usage "Directory path is required when using the $1 option!"
|
|
111
|
+
exit 1
|
|
112
|
+
fi
|
|
113
|
+
SOLR_VAR_DIR="$2"
|
|
114
|
+
shift 2
|
|
115
|
+
;;
|
|
116
|
+
-u)
|
|
117
|
+
if [[ -z "$2" || "${2:0:1}" == "-" ]]; then
|
|
118
|
+
print_usage "Username is required when using the $1 option!"
|
|
119
|
+
exit 1
|
|
120
|
+
fi
|
|
121
|
+
SOLR_USER="$2"
|
|
122
|
+
shift 2
|
|
123
|
+
;;
|
|
124
|
+
-s)
|
|
125
|
+
if [[ -z "$2" || "${2:0:1}" == "-" ]]; then
|
|
126
|
+
print_usage "Service name is required when using the $1 option!"
|
|
127
|
+
exit 1
|
|
128
|
+
fi
|
|
129
|
+
SOLR_SERVICE="$2"
|
|
130
|
+
shift 2
|
|
131
|
+
;;
|
|
132
|
+
-p)
|
|
133
|
+
if [[ -z "$2" || "${2:0:1}" == "-" ]]; then
|
|
134
|
+
print_usage "Port is required when using the $1 option!"
|
|
135
|
+
exit 1
|
|
136
|
+
fi
|
|
137
|
+
SOLR_PORT="$2"
|
|
138
|
+
shift 2
|
|
139
|
+
;;
|
|
140
|
+
-help|-usage)
|
|
141
|
+
print_usage ""
|
|
142
|
+
exit 0
|
|
143
|
+
;;
|
|
144
|
+
--)
|
|
145
|
+
shift
|
|
146
|
+
break
|
|
147
|
+
;;
|
|
148
|
+
*)
|
|
149
|
+
if [ "$1" != "" ]; then
|
|
150
|
+
print_usage "Unrecognized or misplaced argument: $1!"
|
|
151
|
+
exit 1
|
|
152
|
+
else
|
|
153
|
+
break # out-of-args, stop looping
|
|
154
|
+
fi
|
|
155
|
+
;;
|
|
156
|
+
esac
|
|
157
|
+
done
|
|
158
|
+
fi
|
|
159
|
+
|
|
160
|
+
if [ -z "$SOLR_EXTRACT_DIR" ]; then
|
|
161
|
+
SOLR_EXTRACT_DIR=/opt
|
|
162
|
+
fi
|
|
163
|
+
|
|
164
|
+
if [ ! -d "$SOLR_EXTRACT_DIR" ]; then
|
|
165
|
+
print_usage "Installation directory $SOLR_EXTRACT_DIR not found! Please create it before running this script."
|
|
166
|
+
exit 1
|
|
167
|
+
fi
|
|
168
|
+
|
|
169
|
+
if [ -z "$SOLR_SERVICE" ]; then
|
|
170
|
+
SOLR_SERVICE=solr
|
|
171
|
+
fi
|
|
172
|
+
|
|
173
|
+
if [ -z "$SOLR_VAR_DIR" ]; then
|
|
174
|
+
SOLR_VAR_DIR=/var/$SOLR_SERVICE
|
|
175
|
+
fi
|
|
176
|
+
|
|
177
|
+
if [ -z "$SOLR_USER" ]; then
|
|
178
|
+
SOLR_USER=solr
|
|
179
|
+
fi
|
|
180
|
+
|
|
181
|
+
if [ -z "$SOLR_PORT" ]; then
|
|
182
|
+
SOLR_PORT=8983
|
|
183
|
+
fi
|
|
184
|
+
|
|
185
|
+
if [ -f "/etc/init.d/$SOLR_SERVICE" ]; then
|
|
186
|
+
echo -e "\nERROR: /etc/init.d/$SOLR_SERVICE already exists! Perhaps Solr is already setup as a service on this host?\n" 1>&2
|
|
187
|
+
exit 1
|
|
188
|
+
fi
|
|
189
|
+
|
|
190
|
+
if [ -e "$SOLR_EXTRACT_DIR/$SOLR_SERVICE" ]; then
|
|
191
|
+
print_usage "$SOLR_EXTRACT_DIR/$SOLR_SERVICE already exists! Please move this directory / link or choose a different service name using the -s option."
|
|
192
|
+
exit 1
|
|
193
|
+
fi
|
|
194
|
+
|
|
195
|
+
solr_uid=`id -u $SOLR_USER`
|
|
196
|
+
if [ $? -ne 0 ]; then
|
|
197
|
+
echo "Creating new user: $SOLR_USER"
|
|
198
|
+
if [ "$distro" == "RedHat" ]; then
|
|
199
|
+
adduser $SOLR_USER
|
|
200
|
+
elif [ "$distro" == "SUSE" ]; then
|
|
201
|
+
useradd -m $SOLR_USER
|
|
202
|
+
else
|
|
203
|
+
adduser --system --shell /bin/bash --group --disabled-password --home /home/$SOLR_USER $SOLR_USER
|
|
204
|
+
fi
|
|
205
|
+
fi
|
|
206
|
+
|
|
207
|
+
SOLR_INSTALL_DIR=$SOLR_EXTRACT_DIR/$SOLR_DIR
|
|
208
|
+
if [ ! -d "$SOLR_INSTALL_DIR" ]; then
|
|
209
|
+
|
|
210
|
+
echo "Extracting $SOLR_ARCHIVE to $SOLR_EXTRACT_DIR"
|
|
211
|
+
|
|
212
|
+
if $is_tar ; then
|
|
213
|
+
tar zxf $SOLR_ARCHIVE -C $SOLR_EXTRACT_DIR
|
|
214
|
+
else
|
|
215
|
+
unzip -q $SOLR_ARCHIVE -d $SOLR_EXTRACT_DIR
|
|
216
|
+
fi
|
|
217
|
+
|
|
218
|
+
if [ ! -d "$SOLR_INSTALL_DIR" ]; then
|
|
219
|
+
echo -e "\nERROR: Expected directory $SOLR_INSTALL_DIR not found after extracting $SOLR_ARCHIVE ... script fails.\n" 1>&2
|
|
220
|
+
exit 1
|
|
221
|
+
fi
|
|
222
|
+
|
|
223
|
+
chown -R $SOLR_USER: $SOLR_INSTALL_DIR
|
|
224
|
+
else
|
|
225
|
+
echo -e "\nWARNING: $SOLR_INSTALL_DIR already exists! Skipping extract ...\n"
|
|
226
|
+
fi
|
|
227
|
+
|
|
228
|
+
# create a symlink for easier scripting
|
|
229
|
+
ln -s $SOLR_INSTALL_DIR $SOLR_EXTRACT_DIR/$SOLR_SERVICE
|
|
230
|
+
chown -h $SOLR_USER: $SOLR_EXTRACT_DIR/$SOLR_SERVICE
|
|
231
|
+
|
|
232
|
+
mkdir -p $SOLR_VAR_DIR/data
|
|
233
|
+
mkdir -p $SOLR_VAR_DIR/logs
|
|
234
|
+
cp $SOLR_INSTALL_DIR/server/solr/solr.xml $SOLR_VAR_DIR/data/
|
|
235
|
+
cp $SOLR_INSTALL_DIR/bin/solr.in.sh $SOLR_VAR_DIR/
|
|
236
|
+
cp $SOLR_INSTALL_DIR/server/resources/log4j.properties $SOLR_VAR_DIR/log4j.properties
|
|
237
|
+
sed_expr="s#solr.log=.*#solr.log=\${solr.solr.home}/../logs#"
|
|
238
|
+
sed -i -e "$sed_expr" $SOLR_VAR_DIR/log4j.properties
|
|
239
|
+
chown -R $SOLR_USER: $SOLR_VAR_DIR
|
|
240
|
+
|
|
241
|
+
echo "SOLR_PID_DIR=$SOLR_VAR_DIR
|
|
242
|
+
SOLR_HOME=$SOLR_VAR_DIR/data
|
|
243
|
+
LOG4J_PROPS=$SOLR_VAR_DIR/log4j.properties
|
|
244
|
+
SOLR_LOGS_DIR=$SOLR_VAR_DIR/logs
|
|
245
|
+
SOLR_PORT=$SOLR_PORT
|
|
246
|
+
" >> $SOLR_VAR_DIR/solr.in.sh
|
|
247
|
+
|
|
248
|
+
echo "Creating /etc/init.d/$SOLR_SERVICE script ..."
|
|
249
|
+
cp $SOLR_INSTALL_DIR/bin/init.d/solr /etc/init.d/$SOLR_SERVICE
|
|
250
|
+
chmod 744 /etc/init.d/$SOLR_SERVICE
|
|
251
|
+
chown root:root /etc/init.d/$SOLR_SERVICE
|
|
252
|
+
|
|
253
|
+
# do some basic variable substitution on the init.d script
|
|
254
|
+
sed_expr1="s#SOLR_INSTALL_DIR=.*#SOLR_INSTALL_DIR=$SOLR_EXTRACT_DIR/$SOLR_SERVICE#"
|
|
255
|
+
sed_expr2="s#SOLR_ENV=.*#SOLR_ENV=$SOLR_VAR_DIR/solr.in.sh#"
|
|
256
|
+
sed_expr3="s#RUNAS=.*#RUNAS=$SOLR_USER#"
|
|
257
|
+
sed_expr4="s#Provides:.*#Provides: $SOLR_SERVICE#"
|
|
258
|
+
sed -i -e "$sed_expr1" -e "$sed_expr2" -e "$sed_expr3" -e "$sed_expr4" /etc/init.d/$SOLR_SERVICE
|
|
259
|
+
|
|
260
|
+
if [[ "$distro" == "RedHat" || "$distro" == "SUSE" ]]; then
|
|
261
|
+
chkconfig $SOLR_SERVICE on
|
|
262
|
+
else
|
|
263
|
+
update-rc.d $SOLR_SERVICE defaults
|
|
264
|
+
fi
|
|
265
|
+
|
|
266
|
+
service $SOLR_SERVICE start
|
|
267
|
+
sleep 5
|
|
268
|
+
service $SOLR_SERVICE status
|
|
269
|
+
|
|
270
|
+
echo "Service $SOLR_SERVICE installed."
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
4
|
+
# contributor license agreements. See the NOTICE file distributed with
|
|
5
|
+
# this work for additional information regarding copyright ownership.
|
|
6
|
+
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
7
|
+
# (the "License"); you may not use this file except in compliance with
|
|
8
|
+
# the License. You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
# See the License for the specific language governing permissions and
|
|
16
|
+
# limitations under the License.
|
|
17
|
+
|
|
18
|
+
SOLR_PORT=$1
|
|
19
|
+
SOLR_LOGS_DIR=$2
|
|
20
|
+
SOLR_PID=`ps auxww | grep start.jar | grep $SOLR_PORT | grep -v grep | awk '{print $2}' | sort -r`
|
|
21
|
+
if [ -z "$SOLR_PID" ]; then
|
|
22
|
+
echo "Couldn't find Solr process running on port $SOLR_PORT!"
|
|
23
|
+
exit
|
|
24
|
+
fi
|
|
25
|
+
NOW=$(date +"%F_%H_%M_%S")
|
|
26
|
+
(
|
|
27
|
+
echo "Running OOM killer script for process $SOLR_PID for Solr on port $SOLR_PORT"
|
|
28
|
+
kill -9 $SOLR_PID
|
|
29
|
+
echo "Killed process $SOLR_PID"
|
|
30
|
+
) | tee $SOLR_LOGS_DIR/solr_oom_killer-$SOLR_PORT-$NOW.log
|
data/solr/bin/post
ADDED
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
3
|
+
# contributor license agreements. See the NOTICE file distributed with
|
|
4
|
+
# this work for additional information regarding copyright ownership.
|
|
5
|
+
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
6
|
+
# (the "License"); you may not use this file except in compliance with
|
|
7
|
+
# the License. You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# ====== Common code copied/adapted from bin/solr (TODO: centralize/share this kind of thing across bin/solr, etc)
|
|
18
|
+
|
|
19
|
+
THIS_SCRIPT="$0"
|
|
20
|
+
|
|
21
|
+
# Resolve symlinks to this script
|
|
22
|
+
while [ -h "$THIS_SCRIPT" ] ; do
|
|
23
|
+
ls=`ls -ld "$THIS_SCRIPT"`
|
|
24
|
+
# Drop everything prior to ->
|
|
25
|
+
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
26
|
+
if expr "$link" : '/.*' > /dev/null; then
|
|
27
|
+
THIS_SCRIPT="$link"
|
|
28
|
+
else
|
|
29
|
+
THIS_SCRIPT=`dirname "$THIS_SCRIPT"`/"$link"
|
|
30
|
+
fi
|
|
31
|
+
done
|
|
32
|
+
|
|
33
|
+
SOLR_TIP=`dirname "$THIS_SCRIPT"`/..
|
|
34
|
+
SOLR_TIP=`cd "$SOLR_TIP"; pwd`
|
|
35
|
+
|
|
36
|
+
if [ -n "$SOLR_JAVA_HOME" ]; then
|
|
37
|
+
JAVA=$SOLR_JAVA_HOME/bin/java
|
|
38
|
+
elif [ -n "$JAVA_HOME" ]; then
|
|
39
|
+
for java in "$JAVA_HOME"/bin/amd64/java "$JAVA_HOME"/bin/java; do
|
|
40
|
+
if [ -x "$java" ]; then
|
|
41
|
+
JAVA="$java"
|
|
42
|
+
break
|
|
43
|
+
fi
|
|
44
|
+
done
|
|
45
|
+
else
|
|
46
|
+
JAVA=java
|
|
47
|
+
fi
|
|
48
|
+
|
|
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; }
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
# ===== post specific code
|
|
54
|
+
|
|
55
|
+
TOOL_JAR=$SOLR_TIP/dist/solr-core-*.jar
|
|
56
|
+
|
|
57
|
+
function print_usage() {
|
|
58
|
+
echo ""
|
|
59
|
+
echo 'Usage: post -c <collection> [OPTIONS] <files|directories|urls|-d ["...",...]>'
|
|
60
|
+
echo " or post -help"
|
|
61
|
+
echo ""
|
|
62
|
+
echo " collection name defaults to DEFAULT_SOLR_COLLECTION if not specified"
|
|
63
|
+
echo ""
|
|
64
|
+
echo "OPTIONS"
|
|
65
|
+
echo "======="
|
|
66
|
+
echo " Solr options:"
|
|
67
|
+
echo " -url <base Solr update URL> (overrides collection, host, and port)"
|
|
68
|
+
echo " -host <host> (default: localhost)"
|
|
69
|
+
echo " -port <port> (default: 8983)"
|
|
70
|
+
echo " -commit yes|no (default: yes)"
|
|
71
|
+
# optimize intentionally omitted, but can be used as '-optimize yes' (default: no)
|
|
72
|
+
echo ""
|
|
73
|
+
echo " Web crawl options:"
|
|
74
|
+
echo " -recursive <depth> (default: 1)"
|
|
75
|
+
echo " -delay <seconds> (default: 10)"
|
|
76
|
+
echo ""
|
|
77
|
+
echo " Directory crawl options:"
|
|
78
|
+
echo " -delay <seconds> (default: 0)"
|
|
79
|
+
echo ""
|
|
80
|
+
echo " stdin/args options:"
|
|
81
|
+
echo " -type <content/type> (default: application/xml)"
|
|
82
|
+
echo ""
|
|
83
|
+
echo " Other options:"
|
|
84
|
+
echo " -filetypes <type>[,<type>,...] (default: xml,json,csv,pdf,doc,docx,ppt,pptx,xls,xlsx,odt,odp,ods,ott,otp,ots,rtf,htm,html,txt,log)"
|
|
85
|
+
echo " -params \"<key>=<value>[&<key>=<value>...]\" (values must be URL-encoded; these pass through to Solr update request)"
|
|
86
|
+
echo " -out yes|no (default: no; yes outputs Solr response to console)"
|
|
87
|
+
echo ""
|
|
88
|
+
echo ""
|
|
89
|
+
echo "Examples:"
|
|
90
|
+
echo ""
|
|
91
|
+
echo "* JSON file: $THIS_SCRIPT -c wizbang events.json"
|
|
92
|
+
echo "* XML files: $THIS_SCRIPT -c records article*.xml"
|
|
93
|
+
echo "* CSV file: $THIS_SCRIPT -c signals LATEST-signals.csv"
|
|
94
|
+
echo "* Directory of files: $THIS_SCRIPT -c myfiles ~/Documents"
|
|
95
|
+
echo "* Web crawl: $THIS_SCRIPT -c gettingstarted http://lucidworks.com -recursive 1 -delay 1"
|
|
96
|
+
echo "* Standard input (stdin): echo '{"commit": {}}' | $THIS_SCRIPT -c my_collection -type application/json -out yes -d"
|
|
97
|
+
echo "* Data as string: $THIS_SCRIPT -c signals -type text/csv -out yes -d $'id,value\n1,0.47'"
|
|
98
|
+
echo ""
|
|
99
|
+
} # end print_usage
|
|
100
|
+
|
|
101
|
+
if [[ $# -eq 1 && ("$1" == "-help" || "$1" == "-h" || "$1" == "-usage") ]]; then
|
|
102
|
+
print_usage
|
|
103
|
+
exit
|
|
104
|
+
fi
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
COLLECTION=$DEFAULT_SOLR_COLLECTION
|
|
108
|
+
PROPS="-Dauto=yes"
|
|
109
|
+
RECURSIVE=""
|
|
110
|
+
FILES=()
|
|
111
|
+
URLS=()
|
|
112
|
+
ARGS=()
|
|
113
|
+
|
|
114
|
+
while [ $# -gt 0 ]; do
|
|
115
|
+
# TODO: natively handle the optional parameters to SPT
|
|
116
|
+
# but for now they can be specified as bin/post -c collection-name delay=5 http://lucidworks.com
|
|
117
|
+
|
|
118
|
+
if [[ -d "$1" ]]; then
|
|
119
|
+
# Directory
|
|
120
|
+
# echo "$1: DIRECTORY"
|
|
121
|
+
RECURSIVE="-Drecursive=yes"
|
|
122
|
+
FILES+=("$1")
|
|
123
|
+
elif [[ -f "$1" ]]; then
|
|
124
|
+
# File
|
|
125
|
+
# echo "$1: FILE"
|
|
126
|
+
FILES+=("$1")
|
|
127
|
+
elif [[ "$1" == http* ]]; then
|
|
128
|
+
# URL
|
|
129
|
+
# echo "$1: URL"
|
|
130
|
+
URLS+=("$1")
|
|
131
|
+
else
|
|
132
|
+
if [[ $1 == -* ]]; then
|
|
133
|
+
if [[ $1 == "-c" ]]; then
|
|
134
|
+
# Special case, pull out collection name
|
|
135
|
+
shift
|
|
136
|
+
COLLECTION=$1
|
|
137
|
+
elif [[ ($1 == "-d" || $1 == "--data" || $1 == "-") ]]; then
|
|
138
|
+
if [[ -s /dev/stdin ]]; then
|
|
139
|
+
MODE="stdin"
|
|
140
|
+
else
|
|
141
|
+
# when no stdin exists and -d specified, the rest of the arguments
|
|
142
|
+
# are assumed to be strings to post as-is
|
|
143
|
+
MODE="args"
|
|
144
|
+
shift
|
|
145
|
+
if [[ $# -gt 0 ]]; then
|
|
146
|
+
ARGS=("$@")
|
|
147
|
+
shift $#
|
|
148
|
+
fi
|
|
149
|
+
fi
|
|
150
|
+
else
|
|
151
|
+
key=${1:1}
|
|
152
|
+
shift
|
|
153
|
+
# echo "$1: PROP"
|
|
154
|
+
PROPS="$PROPS -D$key=$1"
|
|
155
|
+
fi
|
|
156
|
+
else
|
|
157
|
+
echo -e "\nUnrecognized argument: $1\n"
|
|
158
|
+
echo -e "If this was intended to be a data file, it does not exist relative to $PWD\n"
|
|
159
|
+
exit 1
|
|
160
|
+
fi
|
|
161
|
+
fi
|
|
162
|
+
shift
|
|
163
|
+
done
|
|
164
|
+
|
|
165
|
+
# 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"
|
|
168
|
+
echo -e "See '$THIS_SCRIPT -h' for usage instructions.\n"
|
|
169
|
+
exit 1
|
|
170
|
+
fi
|
|
171
|
+
|
|
172
|
+
# Unsupported: bin/post -c foo
|
|
173
|
+
if [[ ${#FILES[@]} == 0 && ${#URLS[@]} == 0 && $MODE != "stdin" && $MODE != "args" ]]; then
|
|
174
|
+
echo -e "\nNo files, directories, URLs, -d strings, or stdin were specified.\n"
|
|
175
|
+
echo -e "See '$THIS_SCRIPT -h' for usage instructions.\n"
|
|
176
|
+
exit 1
|
|
177
|
+
fi
|
|
178
|
+
|
|
179
|
+
# SPT does not support mixing different data mode types, just files, just URLs, just stdin, or just argument strings.
|
|
180
|
+
# The following are unsupported constructs:
|
|
181
|
+
# bin/post -c foo existing_file.csv http://example.com
|
|
182
|
+
# echo '<xml.../>' | bin/post -c foo existing_file.csv
|
|
183
|
+
# bin/post -c foo existing_file.csv -d 'anything'
|
|
184
|
+
if [[ (${#FILES[@]} != 0 && ${#URLS[@]} != 0 && $MODE != "stdin" && $MODE != "args")
|
|
185
|
+
|| ((${#FILES[@]} != 0 || ${#URLS[@]} != 0) && ($MODE == "stdin" || $MODE == "args")) ]]; then
|
|
186
|
+
echo -e "\nCombining files/directories, URLs, stdin, or args is not supported. Post them separately.\n"
|
|
187
|
+
exit 1
|
|
188
|
+
fi
|
|
189
|
+
|
|
190
|
+
PARAMS=""
|
|
191
|
+
|
|
192
|
+
# TODO: let's simplify this
|
|
193
|
+
if [[ $MODE != "stdin" && $MODE != "args" ]]; then
|
|
194
|
+
if [[ $FILES != "" ]]; then
|
|
195
|
+
MODE="files"
|
|
196
|
+
PARAMS=("${FILES[@]}")
|
|
197
|
+
fi
|
|
198
|
+
|
|
199
|
+
if [[ $URLS != "" ]]; then
|
|
200
|
+
MODE="web"
|
|
201
|
+
PARAMS=("${URLS[@]}")
|
|
202
|
+
fi
|
|
203
|
+
else
|
|
204
|
+
if [[ ${#ARGS[@]} == 0 ]]; then
|
|
205
|
+
# SPT needs a valid (to post to Solr) args string, useful for 'bin/post -c foo -d' to force a commit
|
|
206
|
+
ARGS+=("<add/>")
|
|
207
|
+
fi
|
|
208
|
+
PARAMS=("${ARGS[@]}")
|
|
209
|
+
fi
|
|
210
|
+
|
|
211
|
+
PROPS="$PROPS -Dc=$COLLECTION -Ddata=$MODE $RECURSIVE"
|
|
212
|
+
|
|
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[@]}"
|
|
215
|
+
|
|
216
|
+
# post smoker:
|
|
217
|
+
# bin/post -c signals -out yes -type application/json -d '[{"id": 2, "val": 0.47}]'
|
|
218
|
+
# bin/post -c signals -out yes -params "wt=json" -d '<add><doc><field name="id">1</field></doc></add>'
|