Blame view
SOLR.INSTALL
2.57 KB
e6be5137b reinitialized pro... |
1 2 3 4 5 6 7 8 9 10 |
################ # SOLR INSTALL # ################ # # Author Jean-François Rey # Version : 1.0 # Date : 18/07/2013 # 1/ Edit install.sh and put CONFPASS=1 |
d93dab09a update |
11 |
2/ Run install.sh, this will check tomcat is installed, download and untar otmedia SOLR DB and ask for solr service info. |
e6be5137b reinitialized pro... |
12 13 |
3/ Configure Tomcat and SOLR |
665a8dac3 ! follow the whit... |
14 15 |
otmedia-2013-04 SOLR DB is untar in : SOLR_OTMEDIA_PATH=OTMEDIA_HOME/tools/SOLR/otemdia-2013-04 |
e6be5137b reinitialized pro... |
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
3.1/ Set context file ---------------- - in SOLR_OTMEDIA_PATH/solr/otmedia-document/solr-tomcat-deploy/solr-otmedia-document.xml change DocBase to DocBase="SOLR_OTMEDIA_PATH/solr/otmedia-document/apache-solr-3.5.0.war" and value to value="SOLR_OTMEDIA_PATH/solr/otmedia-document/" - in SOLR_OTMEDIA_PATH/solr/otmedia-multimedia/solr-tomcat-deploy/solr-otmedia-multimedia.xml change DocBase to DocBase="SOLR_OTMEDIA_PATH/solr/otmedia-multimedia/apache-solr-3.5.0.war" and value to value="SOLR_OTMEDIA_PATH/solr/otmedia-multimedia/" 3.2/ SOLR data configuration ----------------------- - in SOLR_OTMEDIA_PATH/solr/otmedia-document/conf/solrconfig.xml change datadir (solr.data.dir) to SOLR_OTMEDIA_PATH/index/otmedia-document/ - in SOLR_OTMEDIA_PATH/solr/otmedia-multimedia/conf/solrconfig.xml change datadir (solr.data.dir) to SOLR_OTMEDIA_PATH/index/otmedia-multimedia/ 3.3/ Add SOLR DB to Tomcat --------------------- - in tomcat/Catalina/localhost/ (mainly in /etc/tomcat/Catalina/localhost or /var/lib/tomcat/conf/Catalina/localhost) run : $> ln -s SOLR_OTMEDIA_PATH/solr/otmedia-document/solr-tomcat-deploy/solr-otmedia-document.xml solr-otmedia-document.xml run : $> ln -s SOLR_OTMEDIA_PATH/solr/otmedia-multimedia/solr-tomcat-deploy/solr-otmedia-multimedia.xml solr-otmedia-document.xml 4/ Tomcat trouble 4.1/ SOLR use a lot of memory, you need to increase java heap space ! ------------------------- - in catalina.sh (/usr/share/tomcat/bin) add CATALINA_OPTS="$CATALINA_OPTS -Xms256 -Xmx512m" 4.2/ Directory permissions --------------------- - SOLR_OTMEDIA_PATH and subdirectory (and files) need to belong to tomcat group (and tomcat user if the default user don't belong to tomcat group). chgrp -r tomcat7 otmedia-2013-04 chmod g+rx otmedia-2013-04 5/ Test You can test those requests (change ip and port): http://localhost:8080/solr-otmedia-multimedia/select?q=test+bonus+&fq=docDate:[2011-12-30T00\:00\:01Z+TO+2012-01-01T23\:59\:59Z] http://localhost:8080/solr-otmedia-document/select?q=test+bonus+&fq=docDate:[2011-12-30T00\:00\:01Z+TO+2012-01-01T23\:59\:59Z] |