Before 4.10 wrote a installation tutorial, is installed in Tomcat, in order to install 5.1, looked at the following introduction, found from 5.x after SOLR integrated jetty, installation has become a lot easier.
Now only three steps can be done, download SOLR package decompression, decompression, start on the line, of course, have the JDK environment (more than 1.7 must)
1, download
solr:http://www.apache.org/dyn/closer.cgi/lucene/solr/5.1.0
2, unzip the directory
3, starting from the command line
Enter the SOLR root directory via cmd
>>H:>>CD \points\solr-5.1. 0
Start:
Bin\solr.cmd start-f
Then the browser enters: http://localhost:8983/solr/is done
Other commands:
# 8983 # command to stop specifying a port number: 8983
Create a core
- What is core?
A core of SOLR is equivalent to a single policy, with a separate profile Solrconfig.xml, Schema.xml.
Solrconfig.xml The core is configured as a whole, such as the storage path for the index, the maximum length of the field (Maxfiedllength), the time-out (writelocktimeout) of the write lock, the merge factor (Mergefactor), the delete policy, the autocommit policy, Cache settings, etc., it is like a manual for assembling a robot, which describes in detail the parameters of each component (handler).
Schema.xml mainly for the configuration of the index, such as word breaker, field name + Index method + Storage mode + word breaker, unique identification field, etc., it is like a learning method of robot learning, the robot actively or passively accept the specific data, according to the configuration into the index, and then through its components (handler) display, For example: Search, Morelikethis, spellcheck, Factedsearcher, etc.
2. Create a core step (example: Create a new core called Core_one)
A. In the SOLR installation directory \SERVER\SOLR create a new folder called Core_one\
B. Locate the Conf folder in the H:\points\solr-5.1.0\server\solr\configsets\sample_techproducts_configs directory, and copy to the Core_one folder you just created
C. On the SOLR page, click Core Admin-->add core to add a core
With the addition, there's a new core.
SOLR 5.1.0 Installation-windows