1. Get Apache SOLR
Use the following command:
http://archive.apache.org/dist/lucene/solr/3.6.2/apache-solr-3.6.2.tgz
2. Unzip
Use the following command:
-zxvf apache-solr-3.6.2.tgz
3. Contents of SOLR
View the contents of the directory below:
What's important is the example directory, and we'll look at what the files are:
You can see the SOLR catalog from the inside.
4. SOLR's configuration
(1) Copy the Nutch conf directory below the Schema.xml file to the solr/conf directory.
Under the example directory, execute the following command to replicate:
cp ../../nutch/conf/schema.xml solr/conf/
Take a look at the following files in the SOLR conf directory:
(2) Modify Solrconfig.xml
Because the default search defined in Schema.xml is content:
The default search defined in Solrconfig.xml is text:
So you need to replace the text inside the solr/conf/solrconfig.xml with the content.
5. Start the SOLR server
Use the following command:
start.jar &
Execution process:
6. Visit SOLR
After the configuration is complete, you can access SOLR through a browser, which is accessed by entering the following URL:
http://192.168.238.128:8983/solr/
The page is as follows:
7. SOLR's Administration page
Click "SOLR Admin" on the above page to enter, the interface is as follows:
[Nutch] Installation and configuration of Apache SOLR