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:
#以指定端口运行的命令: bin/solr.cmd start-p 8983 #停止指定端口号的命令: bin/solr.cmd stop-p 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.
The solrconfig.xml is configured as a whole for the core, such as the storage path of the index, the maximum length of the field (Maxfiedllength), the time-out of the write lock (writelocktimeout), Merge factor (mergefactor), delete policy, 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 is mainly 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, It is then displayed through its components (handler), such as search, Morelikethis, spellcheck, Factedsearcher, and so on.
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 (also for 5.4.1)