Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: MGNLEESOLR-146 + shot with a configured core
HTML Wrap
clearboth
width343px
alignright
classmenu

Related topics:

This page describes how to install and start Apache Solr 7 and create a new Solr core based on a Magnolia configuration set. Apache Solr is a standalone enterprise-grade search platform that's needed together with the Magnolia Solr module for high-performance searches of large volumes of documents.

Table of Contents

Info

The installation procedure for Apache Solr described on this page has been reduced to just a minimum of steps required to setup, start and use Solr with a Magnolia instance. For a full account please refer to the official Solr documentation at http://lucene.apache.org/solr/guide/.

Anchor
anc-installing-solr7
anc-installing-solr7

Getting Apache Solr

Download Apache Solr and extract the zip to your computer. 

Creating a configuration set

Create a new Magnolia config set by duplicating the $SOLR_HOME/server/solr/configsets/_default folder and name it to magnolia_data_driven_schema_configs . 

In this new configuration set you need to create or modify two files, solrconfig.xml and managed-schema:

Configuration example

(warning) Please be aware that different Solr versions may require different content in the Solr configuration files. The example configuration files attached below are for Solr 7.3.0.

Download the following example configuration files (based on Solr data_driven_schema_configs https://lucene.apache.org/solr/guide/7_3/config-sets.html) and replace with them the default files in the newly created set magnolia_data_driven_schema_configs/conf:

Starting Solr

Go to the $SOLR_HOME/bin folder and start the Solr server:

Code Block
languagebash
./solr start

Check if Solr is running

Check if Solr is running by issuing the following command:

Code Block
languagebash
./solr status  

Creating a new core

A core is a running instance of a Lucene index along with all the Solr configuration required to use it. Create a new core called magnolia:

Code Block
languagebash
./solr create_core -c magnolia -d magnolia_data_driven_schema_configs

Use the admin dashboard

By opening  http://localhost:8983/solr/ you may use Solr's admin dashboard.  Form there you can also create cores:

Image Added

Image Added

Info

Please note that the type of installation described above works for testing and development purposes. For production installation see Taking Solr to Production.