How to create a Solr index and speed up your data

If you are designing a website and you want to have a solid backend Solr is an exceptional choice not only because its search capabilities and all the integration with the lucene ecosystem also because its capacity to shard your data and get very good response times.

But which is the best approach in order to migrate your data to Solr? If you have your data in MySQL you can use the DataImport plugin but personally I prefer to have more control in this part of the code in case I need to create special fields in indexing time. In case you want to avoid the data import handler you can use SolrJ. With this java client you can create your solr/lucene documents directly from your code.

If you are interested in a more detailed example I have an example on github where you will find all the steps to create a Solr index using as a source wikipedia documents:


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s