Prerequisite
- A Solr server running either on your local environment or on another server
Create a new Solr server
- Open your browser and login to your Drupal site
- Go to Configuration -> Search and metadata -> Search API
- Click the Add server button
- In the Add search server page, enter the following information
- Server name: Solr
- Backend: Solr
- Solr Connector: Standard
- Solr host: staging.upanupstudios.com
- Solr core: [core-name]
- Click the Save button
- Click Get config.zip button
- Download and extract the config.zip file, note the location
Create Solr core
- Open terminal and copy extracted files to solr lib directory
$ rsync -aP ~/path-to-solr-config/ [user]@[server]:/usr/local/var/lib/[core-name]
- Login to your server and create new index with name in Drupal Search API
$ solr create_core -c [core-name] -d /usr/local/var/lib/[core-name] -n [core-name]
After creating the Solr core, refresh the newly created Solr server page and you should now be able to see the message "The Solr server could be reached." for your server connection.
Add new comment