Summary: The new features of SOLR6 include enhanced Edismax, better support for SQL-parallel SQL, JDBC driver, more SQL syntax support, and so on, and after SOLR6 release, SOLR5 continues to update, for users who want to taste SOLR6, what is different from previous versions, Let's explore it together.
SOLR6 starts with the default jetty
Required Software support
- JDK1.8 or more
- SOLR6 installation package (Solr-6.0.0.zip approx. 140M)
SOLR comes with a jetty environment that makes it easy to run SOLR.
Run directly to the extracted Solr/bin directory solr start
.
My environment is java1.7, check it out.
How does it match the reality? Originally, my java1.8 is directly installs, it will own the running file copy one copies puts in C:\ProgramData\Oracle\Java\javapath (ProgramData is a hidden folder, needs to be set to show out), However, the Java_home I set previously was not changed, and the environment variable was set to java1.8 and started again.
See this information, you can.
- Access to http://localhost:8983/solr/index.html can be seen in SOLR's graphical interface, but our sore is still empty and needs to be created manually. Start by creating a new folder under the. \SOLR-6.0.0\SERVER\SOLR directory
core0
and copy all the files under. \solr-6.0.0\server\solr\configsets\basic_configs.
In the admin interface, click on the No cores available
option, in the popup window just create the new folder name.
In this way, the simplest SOLR is built.
- To stop running, run
solr stop
in the command window
SOLR6 deployed in the JETTY9 environment
-
Required software support
- JDK1.8 above
- SOLR6 installation package (Solr-6.0.0.zip approx. 140M)
- Jetty9.3.10 (at least jet ty9.3.8 above, Apache-tomcat-7.0.68-windows-x86.zip approx. 11M)
-
In previous versions of the SOLR installation package, There is a Solr.war file, but SOLR6 has no such war package, it has been extracted to the. \solr-6.0.0\server\solr-webapp folder, copy the contents of the folder under the. \jetty-9.3.10\webapps , the directory should be webapp and changed to SOLR. &NBSP
- log Processing: Copy the 5 jar packages from the. \solr-6.0.0\server\lib\ext in the SOLR installation package to the. \jetty-9.3.10\webapps\solr\web-inf Under the \lib. Copy the
log4j.properties
file under. \solr-6.0.0\server\resources to the. \jetty-9.3.10\webapps\solr\web-inf\classes , the classes directory here needs to be created by itself. A row of Log4j.appender.file.file=${solr.log}/solr.log
in the log4j.properties
file specifies the storage path for the log file. Can be specified to a specific directory.
- Configure Solr_home: Create a new directory anywhere on the disk, name
solr_home
, and copy the entire SOLR folder under. \SOLR-6.0.0\SERVER\SOLR to Solr_ Home
, edit the Web. xml file under. \jetty-9.3.10\webapps\solr\web-inf.
- Remove the Web. xml file comment,
<env-entry-value>
, fill in the solr_home
path that you just created
<env-entry> <env-entry-name>solr/home</env-entry-name> <env-entry-value>E:\Tools\solr_home</env-entry-value> <env-entry-type>java.lang.String</env-entry-type> </env-entry>
The solr_home
contents of this inside are copied. \solr-6.0.0\server\solr\, and then create a new folder under the directory core0
, put the. \solr-6.0.0\server\solr\configsets\basic_ All files under Configs\ are copied in.
Startup: In Jetty's installation directory, run java -jar start.jar
- Visit http://localhost:8080/solr/index.html to see the SOLR admin interface, but our sore is still empty and needs to be created manually. In the admin interface, click on the
No cores available
option, in the popup window just create the new folder name.
In this way, the simplest SOLR is built.
SOLR6 deployed in the TOMCAT8 environment
- Required Software support
- JDK1.8 or more
- SOLR6 installation package (Solr-6.0.0.zip approx. 140M)
- Tomcat8 (at least tomcat-8.0 above, apache-tomcat-8.5.5-windows-x86.zip approx. 10M)
- In the previous version of the SOLR installation package, there is a Solr.war file, but SOLR6 has no such war package, it has been extracted to the. \solr-6.0.0\server\solr-webapp folder, copy the WebApp under the folder to. \ Apache-tomcat-8.5.5\webapps, the directory should now be webapp and changed to SOLR.
- Log processing: Copy the 5 jar packages within the SOLR installation package. \solr-6.0.0\server\lib\ext to. \apache-tomcat-8.5.5\webapps\solr\web-inf\lib. Copy the Log4j.properties file under. \solr-6.0.0\server\resources to the. \apache-tomcat-8.5.5\webapps\solr\web-inf\classes, The classes directory here needs to be built on its own. The log4j.properties file has a line Log4j.appender.file.file=${solr.log}/solr.log specify the log file's storage path and can be specified to a specific directory.
- Configure Solr_home: Create a new directory anywhere on the disk, name Solr_home, copy the entire Solr folder under. \solr-6.0.0\server\solr to Solr_home, edit. \apache-tomcat-8.5.5\ The Web. xml file under Webapps\solr\web-inf.
- Remove the Web. xml file comment and
<env-entry-value>
fill in the path you just created solr_home
<env-entry>
<env-entry-name>solr/home</env-entry-name>
<env-entry-value>E:\Tools\solr_home</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
- The
solr_home
contents of this inside are copied. \solr-6.0.0\server\solr\, and then create a new folder under the directory core0
, put the. \solr-6.0.0\server\solr\configsets\basic_ All files under Configs\ are copied in.
- Run, just double-click
startup.bat
- Visit http://localhost:8080/solr/index.html to see the SOLR admin interface, but our sore is still empty and needs to be created manually. In the admin interface, click on the
No cores available
option, in the popup window just create the new folder name.
In this way, the simplest SOLR is built.
- Http://blog.csdn.net/jiangchao858/article/details/52503204?locationNum=6&fps=1
Solr6.0 and jetty, Tomcat build/deploy in Win environment