Chapter 5. Indexing Data with the Help of Structured Datasources – Using DIH
In the previous chapter, we saw how we can index data using the XML, JSON, and CSV update handlers provided by Solr. In this chapter, we'll see how we can import data from a data store (for example, a database, XML that uses XPath, and many more) using the inbuilt functionalities of Solr. We'll cover the following topics:
- Configuring a custom datasource for our data import handler
- The various datasources available in Solr
- Customization of the data import handler
Indexing data from MySQL
In this section, we'll see how we can set up a MySQL database in Solr to index our data from the database to Solr directly. To do this, we'll use the musicCatalog
schema, which we developed ...
Get Apache Solr for Indexing Data now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.