Skip to Content
Apache Solr for Indexing Data
book

Apache Solr for Indexing Data

by Sachin Handiekar, Anshul Johri
December 2015
Intermediate to advanced content levelIntermediate to advanced
160 pages
2h 50m
English
Packt Publishing
Content preview from Apache Solr for Indexing Data

Chapter 3. Indexing Data

In the previous chapter, we saw the various analyzers, tokenizers, and filters provided by Solr that help us select the most important data from a given document. In this chapter, we'll see how Solr provides us a way to index this data so that we can run queries on top of it. We'll cover the following topics in this chapter:

  • Defining field types in Solr
  • Creating a custom musicCatalogue example
  • Facet searching

The Solr indexing process can mainly be broken down into two major parts:

  • Converting the document from its native format to XML or JSON, both of which are supported by Solr
  • Adding documents into Solr datastore using API or HTTP POST

To better understand the preceding two parts, we'll create an example of a music catalogue ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Scaling Apache Solr

Scaling Apache Solr

Hrishikesh Vijay Karambelkar
Mastering Apache Solr 7.x

Mastering Apache Solr 7.x

Sandeep Nair, Chintan Mehta, Dharmesh Vasoya
ElasticSearch Server

ElasticSearch Server

Rafal Kuc, Marek Rogozinski

Publisher Resources

ISBN: 9781783553235Supplemental Content