-
Notifications
You must be signed in to change notification settings - Fork 1
Setup
|
Before starting, please make sure you already set up the general KnowledgeFinder requirements: KnowledgeFinder - Prerequisites |
-
Download the latest release of Apache Solr 7
-
unzip it to an appropriate folder in your filesystem. Or use the install_solr_service.sh (see Administration Documentation)
The solr index folder contains the solr configuration and the index.
-
Build the knowledgefinder-dataimport project together with a configuration project (for instructions see here). The Solr home is the
solr-config
folder in your configuration project.
To start Solr manually do one of the folowing based on the OS:
-
For Linux:
cd {UnzipDirectory}\solr-7.x.x bin/solr start -s "{path}../../knowledgefinder-config-example/solr-config"
-
For Windows:
cd {UnzipDirectory}\solr-7.x.x bin\solr.cmd start -s "{path}..\..\knowledgefinder-config-example\solr-config"
⚠️ It is recommended to use command prompt in Windows OS, rather than cygwin or other bash shells.
The instance should be running at http://localhost:8983/solr/ with the example Index at http://localhost:8983/solr/#/example.
Under Linux it is also possible to create a service to start and stop solr. See Administration Documentation for details.
To import the documents of the example you have to replace some values in the data-conf.xml
of the example dataimport configuration. See KnowledgeFinder example configuration for details.
Indexing via the solr admin webpage:
-
On the solr admin page select the desired core from the Core Selector on the left side.
-
Go to the Dataimport view and press "Execute".
-
The bash where Solr is running should now display the process of the data import.
-
Wait till the import process finished.
In the Administration Documentation you can find an example script to automate the indexing process under linux.