Book Image

Administrating Solr

By : Surendra Mohan
Book Image

Administrating Solr

By: Surendra Mohan

Overview of this book

Implementing different search engines on web products is a mandate these days. Apache Solr is a robust search engine, but simply implementing Apache Solr and forgetting about it is not a good idea, especially when you have to fight for the search ranking of your web product. In such a scenario, you need to keep monitoring, administrating, and optimizing your Solr to retain your ranking. "Administrating Solr" is a practical, hands-on guide. This book will provide you with a number of clear, step-by-step exercises and some advanced concepts which will help you administrate, monitor, and optimize Solr using Drupal and associated scripts. Administrating Solr will also provide you with a solid grounding on how you can use Apache Solr with Drupal. "Administrating Solr" starts with an overview of Apache Solr and the installation process to get you familiar with Solr. It then gradually moves on to discuss the mysteries that make Solr flexible enough to render appropriate search results in different scenarios. This book will take you through clear and practical concepts that will help you monitor, administrate, and optimize your Solr appropriately using both scripts and tools. This book will also teach you ways to query your search and methods to keep your Solr healthy and well maintained. With this book, you will learn how to effectively implement and optimize Solr using Drupal.
Table of Contents (12 chapters)

Basic Solr scripts

When you use Solr server, it becomes mandatory for you to manage your index data. In this section, we will learn about a few frequently used scripts which are hard to manage your data efficiently.

User scripts.conf

Let us assume a situation wherein you have a huge index which gets updated with a frequency of once a week. Of course, the frequency in which data gets updated is not high, on the other hand, the index gets too huge to fetch every time. To overcome such a situation and to avoid getting huge index built, we need to think of some solution, for instance, updating the index incrementally which is also termed script-based replication. Is Solr efficient enough to handle such a situation and to implement our solution of incremental indexing? Yes, of course! In this section, we will cover how to do it.


You need to see that the slave is able to connect to the master through ssh and rsync. Probably, you may use key based authorization between the slave and the master...