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
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: ae13b8a2b57aedb34ad05a13224a9279f30da9a2
|
|
4
|
+
data.tar.gz: 7ffbf0136174428990ab58f8c5ed4caad9e64b40
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 31b8e5adb0b4ca3e7d370bf19707c4fbacaec113dbc30047da722757b8fde09ce1de6616a4019552e1ad9e5b05a4df565058309a32dff3cf719bf9e24e60ac6e
|
|
7
|
+
data.tar.gz: f1655c00e200d8cf553bc15ca97fb3fb069d8f95aabbb60ecc4d197999cd67498d5422f39c8a778c7c27d65d1f176810c70aa4490bddb7243bf41171a283c2c3
|
data/bin/sunspot-solr
CHANGED
|
@@ -26,10 +26,6 @@ opts = OptionParser.new do |opts|
|
|
|
26
26
|
server.bind_address = b
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
opts.on '-d', '--data-directory=DIRECTORY', 'Solr data directory' do |d|
|
|
30
|
-
server.solr_data_dir = File.expand_path(d)
|
|
31
|
-
end
|
|
32
|
-
|
|
33
29
|
opts.on '-s', '--solr-home=HOME', 'Solr home directory (should contain conf/ directory)' do |s|
|
|
34
30
|
server.solr_home = File.expand_path(s)
|
|
35
31
|
end
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
require 'fileutils'
|
|
2
|
+
require 'rake/file_list'
|
|
2
3
|
|
|
3
4
|
module Sunspot
|
|
4
5
|
module Solr
|
|
5
6
|
class Installer
|
|
6
7
|
class ConfigInstaller
|
|
7
8
|
include TaskHelper
|
|
9
|
+
include FileUtils
|
|
10
|
+
|
|
11
|
+
attr_accessor :config_path, :force
|
|
12
|
+
alias_method :force?, :force
|
|
8
13
|
|
|
9
14
|
class <<self
|
|
10
15
|
def execute(config_path, options = {})
|
|
@@ -13,39 +18,68 @@ module Sunspot
|
|
|
13
18
|
end
|
|
14
19
|
|
|
15
20
|
def initialize(config_path, options)
|
|
16
|
-
|
|
21
|
+
self.config_path = File.expand_path config_path
|
|
22
|
+
self.force = !!options[:force]
|
|
17
23
|
@verbose = !!options[:verbose]
|
|
18
|
-
@force = !!options[:force]
|
|
19
24
|
end
|
|
20
25
|
|
|
21
26
|
def execute
|
|
22
|
-
|
|
23
|
-
'..', '..', 'solr', 'solr', 'conf')
|
|
24
|
-
return if File.expand_path(sunspot_config_path) == File.expand_path(@config_path)
|
|
25
|
-
|
|
26
|
-
FileUtils.mkdir_p(@config_path)
|
|
27
|
-
Dir.glob(File.join(sunspot_config_path, '*.*')).each do |file|
|
|
28
|
-
file = File.expand_path(file)
|
|
29
|
-
dest = File.join(@config_path, File.basename(file))
|
|
27
|
+
return if sunspot_config_path == config_path
|
|
30
28
|
|
|
29
|
+
sunspot_config_files do |file, dest|
|
|
31
30
|
if File.exist?(dest)
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
next unless force?
|
|
32
|
+
say("Removing existing file #{dest}")
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
dir = dest.pathmap('%d')
|
|
36
|
+
unless File.exist?(dir)
|
|
37
|
+
say("Creating directory #{dir}")
|
|
38
|
+
mkdir_p dir
|
|
37
39
|
end
|
|
38
40
|
|
|
41
|
+
next if File.directory? file
|
|
42
|
+
|
|
39
43
|
say("Copying #{file} => #{dest}")
|
|
40
|
-
|
|
44
|
+
cp(file, dest)
|
|
41
45
|
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
private
|
|
49
|
+
|
|
50
|
+
def sunspot_config_files(&blk)
|
|
51
|
+
src, dest = expand_files(config_source_files), expand_files(config_dest_files)
|
|
52
|
+
src.zip(dest).each(&blk)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
def config_dest_files
|
|
56
|
+
@config_dest_files ||= config_source_files.pathmap("%{^#{sunspot_config_path},#{config_path}}p")
|
|
57
|
+
end
|
|
42
58
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
59
|
+
def config_source_files
|
|
60
|
+
@config_source_files ||= glob_source_files
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
def glob_source_files
|
|
64
|
+
list = Rake::FileList.new("#{sunspot_config_path}/**/*") do |fl|
|
|
65
|
+
fl.include "#{sunspot_config_path}/../solr.xml", "#{sunspot_config_path}/../**/core.properties"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
list.map! { |path| path.first(2) == '..' ? File.join(sunspot_config_path, path) : path }
|
|
69
|
+
|
|
70
|
+
list
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
def sunspot_config_path
|
|
74
|
+
@sunspot_config_path ||= File.expand_path sunspot_relative_config_path
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
def sunspot_relative_config_path
|
|
78
|
+
File.join File.dirname(__FILE__), '..', '..', '..', '..', 'solr', 'solr', 'configsets'
|
|
79
|
+
end
|
|
48
80
|
|
|
81
|
+
def expand_files(filelist)
|
|
82
|
+
filelist.map { |file| File.expand_path file }
|
|
49
83
|
end
|
|
50
84
|
end
|
|
51
85
|
end
|
data/lib/sunspot/solr/java.rb
CHANGED
data/lib/sunspot/solr/server.rb
CHANGED
|
@@ -13,15 +13,15 @@ module Sunspot
|
|
|
13
13
|
JavaMissing = Class.new(ServerError)
|
|
14
14
|
|
|
15
15
|
# Name of the sunspot executable (shell script)
|
|
16
|
-
|
|
17
|
-
File.join(File.dirname(__FILE__), '..', '..', '..', 'solr', '
|
|
16
|
+
SOLR_EXECUTABLE = File.expand_path(
|
|
17
|
+
File.join(File.dirname(__FILE__), '..', '..', '..', 'solr', 'bin', 'solr')
|
|
18
18
|
)
|
|
19
19
|
|
|
20
20
|
LOG_LEVELS = Set['SEVERE', 'WARNING', 'INFO', 'CONFIG', 'FINE', 'FINER', 'FINEST']
|
|
21
21
|
|
|
22
22
|
attr_accessor :min_memory, :max_memory, :bind_address, :port, :log_file
|
|
23
23
|
|
|
24
|
-
attr_writer :pid_dir, :pid_file, :
|
|
24
|
+
attr_writer :pid_dir, :pid_file, :solr_home, :solr_executable
|
|
25
25
|
|
|
26
26
|
def initialize(*args)
|
|
27
27
|
ensure_java_installed
|
|
@@ -91,19 +91,14 @@ module Sunspot
|
|
|
91
91
|
def run
|
|
92
92
|
bootstrap
|
|
93
93
|
|
|
94
|
-
command = [
|
|
94
|
+
command = %w[./solr start -f]
|
|
95
95
|
command << "-Xms#{min_memory}" if min_memory
|
|
96
96
|
command << "-Xmx#{max_memory}" if max_memory
|
|
97
|
-
command << "-
|
|
98
|
-
command << "-
|
|
99
|
-
command << "-
|
|
100
|
-
|
|
101
|
-
command
|
|
102
|
-
command << "-Djava.awt.headless=true"
|
|
103
|
-
command << '-jar' << File.basename(solr_jar)
|
|
104
|
-
FileUtils.cd(File.dirname(solr_jar)) do
|
|
105
|
-
exec(*command)
|
|
106
|
-
end
|
|
97
|
+
command << "-p" << "#{port}" if port
|
|
98
|
+
command << "-h" << "#{bind_address}" if bind_address
|
|
99
|
+
command << "-s" << "#{solr_home}" if solr_home
|
|
100
|
+
|
|
101
|
+
exec_in_solr_executable_directory(command)
|
|
107
102
|
end
|
|
108
103
|
|
|
109
104
|
#
|
|
@@ -118,6 +113,7 @@ module Sunspot
|
|
|
118
113
|
pid = IO.read(pid_path).to_i
|
|
119
114
|
begin
|
|
120
115
|
Process.kill('TERM', pid)
|
|
116
|
+
exec_in_solr_executable_directory(['solr', 'stop', '-p', "#{port}"]) if port
|
|
121
117
|
rescue Errno::ESRCH
|
|
122
118
|
raise NotRunningError, "Process with PID #{pid} is no longer running"
|
|
123
119
|
ensure
|
|
@@ -151,16 +147,20 @@ module Sunspot
|
|
|
151
147
|
File.expand_path(@pid_dir || FileUtils.pwd)
|
|
152
148
|
end
|
|
153
149
|
|
|
154
|
-
def
|
|
155
|
-
File.expand_path(@
|
|
150
|
+
def solr_home
|
|
151
|
+
File.expand_path(@solr_home || File.join(File.dirname(solr_executable), '..', 'solr'))
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
def solr_executable
|
|
155
|
+
@solr_executable || SOLR_EXECUTABLE
|
|
156
156
|
end
|
|
157
157
|
|
|
158
|
-
def
|
|
159
|
-
|
|
158
|
+
def solr_executable_directory
|
|
159
|
+
@solr_executable_directory ||= File.dirname(solr_executable)
|
|
160
160
|
end
|
|
161
161
|
|
|
162
|
-
def
|
|
163
|
-
|
|
162
|
+
def exec_in_solr_executable_directory(command)
|
|
163
|
+
FileUtils.cd(solr_executable_directory) { exec(*command) }
|
|
164
164
|
end
|
|
165
165
|
|
|
166
166
|
#
|
|
@@ -189,7 +189,7 @@ module Sunspot
|
|
|
189
189
|
# Boolean:: success
|
|
190
190
|
#
|
|
191
191
|
def create_solr_directories
|
|
192
|
-
[
|
|
192
|
+
[pid_dir].each do |path|
|
|
193
193
|
FileUtils.mkdir_p(path) unless File.exists?(path)
|
|
194
194
|
end
|
|
195
195
|
end
|
data/solr/.gitignore
ADDED
data/solr/README.txt
CHANGED
|
@@ -13,30 +13,169 @@
|
|
|
13
13
|
# See the License for the specific language governing permissions and
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
|
|
16
|
-
Solr example configuration
|
|
17
|
-
--------------------------
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
Welcome to the Apache Solr project!
|
|
18
|
+
-----------------------------------
|
|
20
19
|
|
|
21
|
-
|
|
20
|
+
Solr is the popular, blazing fast open source enterprise search platform
|
|
21
|
+
from the Apache Lucene project.
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
For a complete description of the Solr project, team composition, source
|
|
24
|
+
code repositories, and other details, please see the Solr web site at
|
|
25
|
+
http://lucene.apache.org/solr
|
|
24
26
|
|
|
25
|
-
http://localhost:8983/solr/admin/
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
Getting Started
|
|
29
|
+
---------------
|
|
29
30
|
|
|
30
|
-
|
|
31
|
-
./post.sh *.xml
|
|
31
|
+
To start Solr for the first time after installation, simply do:
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
http://wiki.apache.org/solr/SolrResources for a list of tutorials and
|
|
35
|
-
introductory articles.
|
|
33
|
+
bin/solr start
|
|
36
34
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
the jars in your solrconfig.xml.
|
|
35
|
+
This will launch a standalone Solr server in the background of your shell,
|
|
36
|
+
listening on port 8983. Alternatively, you can launch Solr in "cloud" mode,
|
|
37
|
+
which allows you to scale out using sharding and replication. To launch Solr
|
|
38
|
+
in cloud mode, do:
|
|
42
39
|
|
|
40
|
+
bin/solr start -cloud
|
|
41
|
+
|
|
42
|
+
To see all available options for starting Solr, please do:
|
|
43
|
+
|
|
44
|
+
bin/solr start -help
|
|
45
|
+
|
|
46
|
+
After starting Solr, create either a core or collection depending on whether
|
|
47
|
+
Solr is running in standalone (core) or SolrCloud mode (collection) by doing:
|
|
48
|
+
|
|
49
|
+
bin/solr create -c <name>
|
|
50
|
+
|
|
51
|
+
This will create a collection that uses a data-driven schema which tries to guess
|
|
52
|
+
the correct field type when you add documents to the index. To see all available
|
|
53
|
+
options for creating a new collection, execute:
|
|
54
|
+
|
|
55
|
+
bin/solr create -help
|
|
56
|
+
|
|
57
|
+
After starting Solr, direct your Web browser to the Solr Admin Console at:
|
|
58
|
+
|
|
59
|
+
http://localhost:8983/solr/
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
Solr Examples
|
|
63
|
+
---------------
|
|
64
|
+
|
|
65
|
+
Solr includes a few examples to help you get started. To run a specific example, do:
|
|
66
|
+
|
|
67
|
+
bin/solr -e <EXAMPLE> where <EXAMPLE> is one of:
|
|
68
|
+
|
|
69
|
+
cloud : SolrCloud example
|
|
70
|
+
dih : Data Import Handler (rdbms, mail, rss, tika)
|
|
71
|
+
schemaless : Schema-less example (schema is inferred from data during indexing)
|
|
72
|
+
techproducts : Kitchen sink example providing comprehensive examples of Solr features
|
|
73
|
+
|
|
74
|
+
For instance, if you want to run the Solr Data Import Handler example, do:
|
|
75
|
+
|
|
76
|
+
bin/solr -e dih
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
Indexing Documents
|
|
80
|
+
---------------
|
|
81
|
+
|
|
82
|
+
To add documents to the index, use bin/post. For example:
|
|
83
|
+
|
|
84
|
+
bin/post -c <collection_name> example/exampledocs/*.xml
|
|
85
|
+
|
|
86
|
+
For more information about Solr examples please read...
|
|
87
|
+
|
|
88
|
+
* example/solr/README.txt
|
|
89
|
+
For more information about the "Solr Home" and Solr specific configuration
|
|
90
|
+
* http://lucene.apache.org/solr/quickstart.html
|
|
91
|
+
For a Quick Start guide
|
|
92
|
+
* http://lucene.apache.org/solr/resources.html
|
|
93
|
+
For a list of other tutorials and introductory articles.
|
|
94
|
+
|
|
95
|
+
or linked from "docs/index.html" in a binary distribution.
|
|
96
|
+
|
|
97
|
+
Also, there are Solr clients for many programming languages, see
|
|
98
|
+
http://wiki.apache.org/solr/IntegratingSolr
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
Files included in an Apache Solr binary distribution
|
|
102
|
+
----------------------------------------------------
|
|
103
|
+
|
|
104
|
+
server/
|
|
105
|
+
A self-contained Solr instance, complete with a sample
|
|
106
|
+
configuration and documents to index. Please see: bin/solr start -help
|
|
107
|
+
for more information about starting a Solr server.
|
|
108
|
+
|
|
109
|
+
dist/solr-XX.war
|
|
110
|
+
The Apache Solr Application. Deploy this WAR file to any servlet
|
|
111
|
+
container to run Apache Solr.
|
|
112
|
+
|
|
113
|
+
dist/solr-<component>-XX.jar
|
|
114
|
+
The Apache Solr libraries. To compile Apache Solr Plugins,
|
|
115
|
+
one or more of these will be required. The core library is
|
|
116
|
+
required at a minimum. (see http://wiki.apache.org/solr/SolrPlugins
|
|
117
|
+
for more information).
|
|
118
|
+
|
|
119
|
+
docs/index.html
|
|
120
|
+
The Apache Solr Javadoc API documentation and Tutorial
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
Instructions for Building Apache Solr from Source
|
|
124
|
+
-------------------------------------------------
|
|
125
|
+
|
|
126
|
+
1. Download the Java SE 7 JDK (Java Development Kit) or later from http://java.sun.com/
|
|
127
|
+
You will need the JDK installed, and the $JAVA_HOME/bin (Windows: %JAVA_HOME%\bin)
|
|
128
|
+
folder included on your command path. To test this, issue a "java -version" command
|
|
129
|
+
from your shell (command prompt) and verify that the Java version is 1.7 or later.
|
|
130
|
+
|
|
131
|
+
2. Download the Apache Ant binary distribution (1.8.2+) from
|
|
132
|
+
http://ant.apache.org/ You will need Ant installed and the $ANT_HOME/bin (Windows:
|
|
133
|
+
%ANT_HOME%\bin) folder included on your command path. To test this, issue a
|
|
134
|
+
"ant -version" command from your shell (command prompt) and verify that Ant is
|
|
135
|
+
available.
|
|
136
|
+
|
|
137
|
+
You will also need to install Apache Ivy binary distribution (2.2.0) from
|
|
138
|
+
http://ant.apache.org/ivy/ and place ivy-2.2.0.jar file in ~/.ant/lib -- if you skip
|
|
139
|
+
this step, the Solr build system will offer to do it for you.
|
|
140
|
+
|
|
141
|
+
3. Download the Apache Solr distribution, linked from the above web site.
|
|
142
|
+
Unzip the distribution to a folder of your choice, e.g. C:\solr or ~/solr
|
|
143
|
+
Alternately, you can obtain a copy of the latest Apache Solr source code
|
|
144
|
+
directly from the Subversion repository:
|
|
145
|
+
|
|
146
|
+
http://lucene.apache.org/solr/versioncontrol.html
|
|
147
|
+
|
|
148
|
+
4. Navigate to the "solr" folder and issue an "ant" command to see the available options
|
|
149
|
+
for building, testing, and packaging Solr.
|
|
150
|
+
|
|
151
|
+
NOTE:
|
|
152
|
+
To see Solr in action, you may want to use the "ant server" command to build
|
|
153
|
+
and package Solr into the server/webapps directory. See also server/README.txt.
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
Export control
|
|
157
|
+
-------------------------------------------------
|
|
158
|
+
This distribution includes cryptographic software. The country in
|
|
159
|
+
which you currently reside may have restrictions on the import,
|
|
160
|
+
possession, use, and/or re-export to another country, of
|
|
161
|
+
encryption software. BEFORE using any encryption software, please
|
|
162
|
+
check your country's laws, regulations and policies concerning the
|
|
163
|
+
import, possession, or use, and re-export of encryption software, to
|
|
164
|
+
see if this is permitted. See <http://www.wassenaar.org/> for more
|
|
165
|
+
information.
|
|
166
|
+
|
|
167
|
+
The U.S. Government Department of Commerce, Bureau of Industry and
|
|
168
|
+
Security (BIS), has classified this software as Export Commodity
|
|
169
|
+
Control Number (ECCN) 5D002.C.1, which includes information security
|
|
170
|
+
software using or performing cryptographic functions with asymmetric
|
|
171
|
+
algorithms. The form and manner of this Apache Software Foundation
|
|
172
|
+
distribution makes it eligible for export under the License Exception
|
|
173
|
+
ENC Technology Software Unrestricted (TSU) exception (see the BIS
|
|
174
|
+
Export Administration Regulations, Section 740.13) for both object
|
|
175
|
+
code and source code.
|
|
176
|
+
|
|
177
|
+
The following provides more details on the included cryptographic
|
|
178
|
+
software:
|
|
179
|
+
Apache Solr uses the Apache Tika which uses the Bouncy Castle generic encryption libraries for
|
|
180
|
+
extracting text content and metadata from encrypted PDF files.
|
|
181
|
+
See http://www.bouncycastle.org/ for more details on Bouncy Castle.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
#!/bin/sh
|
|
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
|
+
### BEGIN INIT INFO
|
|
18
|
+
# Provides: solr
|
|
19
|
+
# Required-Start: $remote_fs $syslog
|
|
20
|
+
# Required-Stop: $remote_fs $syslog
|
|
21
|
+
# Default-Start: 2 3 4 5
|
|
22
|
+
# Default-Stop: 0 1 6
|
|
23
|
+
# Description: Controls Apache Solr as a Service
|
|
24
|
+
### END INIT INFO
|
|
25
|
+
|
|
26
|
+
# Example of a very simple *nix init script that delegates commands to the bin/solr script
|
|
27
|
+
# Typical usage is to do:
|
|
28
|
+
#
|
|
29
|
+
# cp bin/init.d/solr /etc/init.d/solr
|
|
30
|
+
# chmod 755 /etc/init.d/solr
|
|
31
|
+
# chown root:root /etc/init.d/solr
|
|
32
|
+
# update-rc.d solr defaults
|
|
33
|
+
# update-rc.d solr enable
|
|
34
|
+
|
|
35
|
+
# Where you extracted the Solr distribution bundle
|
|
36
|
+
SOLR_INSTALL_DIR=/opt/solr
|
|
37
|
+
|
|
38
|
+
if [ ! -d "$SOLR_INSTALL_DIR" ]; then
|
|
39
|
+
echo "$SOLR_INSTALL_DIR not found! Please check the SOLR_INSTALL_DIR setting in your $0 script."
|
|
40
|
+
exit 1
|
|
41
|
+
fi
|
|
42
|
+
|
|
43
|
+
# Path to an include file that defines environment specific settings to override default
|
|
44
|
+
# variables used by the bin/solr script. It's highly recommended to define this script so
|
|
45
|
+
# that you can keep the Solr binary files separated from live files (pid, logs, index data, etc)
|
|
46
|
+
# see bin/solr.in.sh for an example
|
|
47
|
+
SOLR_ENV=/var/solr/solr.in.sh
|
|
48
|
+
|
|
49
|
+
if [ ! -f "$SOLR_ENV" ]; then
|
|
50
|
+
echo "$SOLR_ENV not found! Please check the SOLR_ENV setting in your $0 script."
|
|
51
|
+
exit 1
|
|
52
|
+
fi
|
|
53
|
+
|
|
54
|
+
# Specify the user to run Solr as; if not set, then Solr will run as root.
|
|
55
|
+
# Running Solr as root is not recommended for production environments
|
|
56
|
+
RUNAS=solr
|
|
57
|
+
|
|
58
|
+
# verify the specified run as user exists
|
|
59
|
+
runas_uid=`id -u $RUNAS`
|
|
60
|
+
if [ $? -ne 0 ]; then
|
|
61
|
+
echo "User $RUNAS not found! Please create the $RUNAS user before running this script."
|
|
62
|
+
exit 1
|
|
63
|
+
fi
|
|
64
|
+
|
|
65
|
+
case "$1" in
|
|
66
|
+
start|stop|restart|status)
|
|
67
|
+
SOLR_CMD=$1
|
|
68
|
+
;;
|
|
69
|
+
*)
|
|
70
|
+
echo "Usage: $0 {start|stop|restart|status}"
|
|
71
|
+
exit
|
|
72
|
+
esac
|
|
73
|
+
|
|
74
|
+
if [ -n "$RUNAS" ]; then
|
|
75
|
+
su -c "SOLR_INCLUDE=$SOLR_ENV $SOLR_INSTALL_DIR/bin/solr $SOLR_CMD" - $RUNAS
|
|
76
|
+
else
|
|
77
|
+
SOLR_INCLUDE=$SOLR_ENV $SOLR_INSTALL_DIR/bin/solr $SOLR_CMD
|
|
78
|
+
fi
|