How to Configure Solr

Prerequisites:

Download the latest version of SOLR: http://archive.apache.org/dist/lucene/solr/6.6.0/

Or from the terminal by using wget in the terminal

Extract the shell script by executing the following command

Allow execute permission to the shell script by typing the following command

Now type the following command for running the solr service

Creating a New Core and Indexing Data:

You can create your own core by typing the following command in the terminal

Open the terminal and type the following command

where

collection_name = enter the name for the core

data_driven_schema_configs = name of the basic configuration file located in /opt/solr-6.6.0/server/solr/configsets/basic_configs

Now its time to index the data for the created collection. To add documents to the index, use bin/post. For example:

directory_name= Name for the directory which contain the data files. It will take time depend on your documents number so be patient.

ShareTweet about this on TwitterShare on Facebook0Share on LinkedIn0Pin on Pinterest0Share on Reddit0

Leave a Reply

Your email address will not be published. Required fields are marked *