1. Development Environment Integration
1) Integration in the myeclipse Environment
Add the following content to Windows-properties-Tomcat-JDK-optional Java VM arguments:
-Dsolr. SOLR. Home = D:/myprojects/Central/src/config/SOLR-dorg. Apache. tomcat. util. Buf. udecoder. allow_encoded_slash = true
2) Integration in the ecipse Environment
Find java_opts In the tomcat/bin/Catalina. BAT file and add the red content to it:
Java_opts = '-xms512m-xmx512m-XX: maxnewsize = 512 M-XX: maxpermsize = 512 m-Dsolr. SOLR. Home =/var/www/SVN/Central/src/config/SOLR-dorg. Apache. tomcat. util. Buf. udecoder. allow_encoded_slash = true-DCOM. sun. management. jmxremote. authenticate = false-DCOM. sun. management. jmxremote. SSL = false-DCOM. sun. management. jmxremote. port = 7080-DCOM. sun. management. jmxremote'
2. Deployment environment integration
Find java_opts In the tomcat/bin/Catalina. Sh file and add the red content to it:
Java_opts = '-xms512m-xmx512m-XX: maxnewsize = 512 M-XX: maxpermsize = 512 m-Dsolr. SOLR. Home =/var/www/SVN/Central/src/config/SOLR-dorg. Apache. tomcat. util. Buf. udecoder. allow_encoded_slash = true-DCOM. sun. management. jmxremote. authenticate = false-DCOM. sun. management. jmxremote. SSL = false-DCOM. sun. management. jmxremote. port = 7080-DCOM. sun. management. jmxremote'
Note:/Var/www/SVN/Central/src/config/SOLR is the installation path of SOLR, which has two directories: conf and data,
Schedual. conf exists. XML and solrconfig. xml configuration file, where solrconfig. the <datadir>/var/www/webapps/Fulltext/Data </datadir> label in XML indicates the disk path of the SOLR index file.
That is, the index directory file in/var/www/webapps/Fulltext/data is the generated index file.
/Var/www/SVN/Central/src/config/SOLR is the main directory of SOLR