Skip to content
Sivasurya Santhanam edited this page Aug 28, 2018 · 7 revisions
⚠️
Before starting, please make sure you already set up the general KnowledgeFinder requirements: KnowledgeFinder - Prerequisites

Install the prerequisites

Apache Solr 7

Prepare Solr

Setup solr index folder

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.

Start Solr

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.

Index Documents

Prepare Indexing

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

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.