
Look for the Solr Search Defaults module, and uninstall it. Change the name of the core to firstcollection. Scroll down and find the Solr core label. The only thing you have to do is to change the name of the Solr core to the name of the core you created previously. Click the “Edit” button to configure the Server. The Server and Index configurations were provided by the Solr Search Defaults module. The Solr Search module will be enabled automatically. Click the List tab and enable the “Solr Search Defaults” module, this module provides the initial default configuration. Confirm the Uninstall process by clicking the blue “Uninstall” button once again. This module has to be uninstalled to avoid performance issues. Click Extend > Uninstall and look for the Drupal default Search module. Change owner, group and permissions for this new folder. Copy the configuration file called 7.x inside the installed Solr Search API module and rename it to conf.Ĭp -R /var/www/your_site/docroot/modules/contrib/search_api_solr/solr-conf/7.x conf. Locate yourself in the collections folder of Solr, which is located at the /var directory in an Ubuntu based system. Check that the collection has been created and its location. Take a look at Solr’s dashboard and select “Core Admin”. However, the collection will be created in another directory. In my case it’s in the /opt folder of my Ubuntu system. This command will vary, depending on where Solr is installed. Sudo su - solr -c "/opt/solr/bin/solr create -c firstcollection -n data_driven_schema_configs" A collection is basically a logical index that’s associated with a config set. In order to work with the Solr platform, you have to create a collection. Open your Terminal application and type:. #Search defaults install#
To install this module, you have to use Composer, otherwise there will be unresolved dependencies and it won’t work.
This way, you can take a look at Solr’s user interface by typing localhost:8983 (or whatever your host is called). You’ll see an output with the label Active: active (exited). Open the Terminal application in your system and type:.Before you begin, you will need to have installed Apache Solr on your server. This tutorial will deal with the integration between Drupal and the Solr platform. The Search API Solr Search module (yes, that name is a mouthful!) provides a Solr backend for the Drupal Search API module. Solr creates an index of the available documents and then you can query Solr to return the most relevant ones for your search.įor Drupal users, it is possible to integrate your site with Solr. Solr is very stable, scalable and reliable and provides a wide set of core search functions. Apache Solr is a very popular open source search platform, based on the Java Lucene Library.