Importing / Indexing MySQL data into Solr
Apache Solr is a fast, full featured, open-source Java search server. It enables you to easily create search engines which index, search & analyze data from websites, databases or files. Before we proceed further I presume that you have already configured Solr server without data or refer to Solr in 5 minutes tutorial to configure your Solr server first. Configure your Solr server Step 1: To index your data firstly you need to define schema by editing file called schema.xml present at <SOLR_HOME>/example/solr/conf/ Schema.xml in solr serves the similar purpose that table does in mysql In schema.xml file you have to define the Fields with there field type Field which should be used as unique key Which fields are required, indexed Default search field (deprecated in new versions) Default search operator (AND | OR deprecated in new versions) **indexed fields are fields which undergo an analysis phase, and are added