Book Image

Apache Solr Enterprise Search Server - Third Edition

By : David Smiley, Eric Pugh, Kranti Parisa, Matt Mitchell
Book Image

Apache Solr Enterprise Search Server - Third Edition

By: David Smiley, Eric Pugh, Kranti Parisa, Matt Mitchell

Overview of this book

<p>Solr Apache is a widely popular open source enterprise search server that delivers powerful search and faceted navigation features—features that are elusive with databases. Solr supports complex search criteria, faceting, result highlighting, query-completion, query spell-checking, relevancy tuning, geospatial searches, and much more.</p> <p>This book is a comprehensive resource for just about everything Solr has to offer, and it will take you from first exposure to development and deployment in no time. Even if you wish to use Solr 5, you should find the information to be just as applicable due to Solr's high regard for backward compatibility. The book includes some useful information specific to Solr 5.</p>
Table of Contents (19 chapters)
Apache Solr Enterprise Search Server Third Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Understanding request handlers


Most interactions with Solr, including indexing and searching, are processed by what Solr calls request handlers. Request handlers are configured in the solrconfig.xml file and are clearly labeled as such. Many of them exist for special purposes, such as handling a CSV import, for example. Here is how the default request handler is configured:

<requestHandler name="/select" class="solr.SearchHandler">
  <!-- default values for query parameters can be specified, these will be overridden by parameters in the request -->
  <lst name="defaults">
    <str name="echoParams">explicit</str>
    <int name="rows">10</int>
    <str name="df">text</str>
  </lst>
… 

The request handlers that perform searches allow configuration of two things:

  • Establishing default parameters and making some unchangeable

  • Registering Solr search components such as faceting and highlighting

Tip

Create a request handler configuration for...