Book Image

Scaling Apache Solr

By : Hrishikesh Vijay Karambelkar
Book Image

Scaling Apache Solr

By: Hrishikesh Vijay Karambelkar

Overview of this book

Table of Contents (18 chapters)
Scaling Apache Solr
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

solrconfig.xml


The Configuring the Apache Solr for enterprise section of Chapter 2, Getting Started with Apache Solr, of this book explains solrconfig.xml in detail. We will look at the sample configuration in this section for log management. In the Solr configuration, the interesting part will be the introduction of facets. For log management, you may consider the following facets to make the overall browsing experience interesting:

Facet

Description

Timeline-based

With this facet, users will be able to effectively filter their search based on the time. For example, options such as the past 1 hour and the past 1 week.

Levels of log

Levels of log provide you the severity. For example, SEVERE, ERROR, and Information.

Host

Since this system provides a common search for multiple machines, this facet can provide filtering criteria if an administrator is looking for something specific.

User

If the administrator knows about the user, extracting user information from the log can add better filtering through the user facet.

Application

Similar to the host, administrators can filter the logs based on the application using this facet.

Severity

Severity can be another filtering criterion. Most severe errors can be filtered with this facet.

In addition to this, you will also use features for highlighting logs, spelling correction, suggestions (more like this), master-slave, and so on. The following screenshot shows a sample facet sidebar of Apache Solr to get us a better understanding of how it may look:

The following sample configuration for Solr shows different facets and other information when you access/browse:

Similarly, the following configuration shows timeline-based facets, and features such as highlighting and spell check: