Book Image

Apache Solr for Indexing Data

Book Image

Apache Solr for Indexing Data

Overview of this book

Apache Solr is a widely used, open source enterprise search server that delivers powerful indexing and searching features. These features help fetch relevant information from various sources and documentation. Solr also combines with other open source tools such as Apache Tika and Apache Nutch to provide more powerful features. This fast-paced guide starts by helping you set up Solr and get acquainted with its basic building blocks, to give you a better understanding of Solr indexing. You’ll quickly move on to indexing text and boosting the indexing time. Next, you’ll focus on basic indexing techniques, various index handlers designed to modify documents, and indexing a structured data source through Data Import Handler. Moving on, you will learn techniques to perform real-time indexing and atomic updates, as well as more advanced indexing techniques such as de-duplication. Later on, we’ll help you set up a cluster of Solr servers that combine fault tolerance and high availability. You will also gain insights into working scenarios of different aspects of Solr and how to use Solr with e-commerce data. By the end of the book, you will be competent and confident working with indexing and will have a good knowledge base to efficiently program elements.
Table of Contents (18 chapters)
Apache Solr for Indexing Data
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Indexing data in Solr


Indexing of data in Solr is done using a document that contains fields that are used to provide major information to Solr. A document can be broken down further into fields, which contain major pieces of information that is used by Solr to further provide better search results.

The musicCatalogue core that we'll build will contain fields representing information related to a song. For example, an artistName field will contain the name of the artist who sang the song. Another field such as duration can contain the length of the song. A fields can also contain a data type, which will further describe the type of data that can be used. For example, artistName can be described as a text field. On the other hand, the duration field can be of type float or double. The fieldType property specifies the kind of field to be used by Solr.

Note

More information about floating-point numbers can be found at https://en.wikipedia.org/wiki/Floating_point.

So let's go ahead and create a...