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

Communicating with Solr


There are quite a few options when it comes to importing data into Solr. In this section, we'll examine a few of those, and then follow up with interaction examples. Details on specific formats, such as Solr's Update-XML, will come later.

The following diagram represents the high-level workflow of the indexing process in Solr. In addition to the predefined importing mechanisms, you can also build custom import handlers. Before generating the index, Solr uses the field definitions and other configurations from schema.xml and solrconfig.xml to process the data for each field.

Using direct HTTP or a convenient client API

Most applications interact with Solr over HTTP. This can either be done using a typical HTTP client, or indirectly via a Solr integration API such as SolrJ or Sunspot. Such APIs are discussed in Chapter 9, Integrating Solr.

Note

Another option is to embed Solr into your Java application instead of running it as a server. The SolrJ API is conveniently used...