O'Reilly logo

Apache Solr 3.1 Cookbook by Rafał Kuć

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Indexing data from a database using Data Import Handler

Let's assume that we want to index Wikipedia data and we don't want to parse the whole Wikipedia data and make another XML file. Instead, we asked our DB expert to import the data dump info, the PostgreSQL database, so we could fetch that data. Did I say fetch? Yes, it is possible to do so with the use of the Data Import Handler and JDBC data source. This recipe will guide you how to do it.

Getting ready

Please take a look at the recipe named How to properly configure Data Import Handler with JDBC in this chapter, to know the basics about configuring the Data Import Handler.

How to do it...

The Wikipedia data I used in this example is available under the Wikipedia downloads page http://download.wikimedia.org/ ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required