Working with AJAX Solr
Now that we have seen the architecture and components of AJAX Solr, let us go ahead and see how to implement it. We will download the default reuters index and build some features on top of it.
The reuters index is included as a part of code of this chapter. It can also be downloaded from http://public.slashpoundbang.com.s3.amazonaws.com/data-solr-4-index.zip.
Start with a fresh installation of Solr. Unzip the downloaded index and replace the data folder inside the <solr_installation>/example/solr/collection1
folder.
If the data folder does not exist, start Solr using the following command inside the <solr_installation>/example
folder:
java -jar start.jar
Once Solr is running, simply shut it down using Ctrl-C
on the Command Prompt.
This will create the data folder and the related configuration files inside the <solr_installation>/example/solr/collection1
folder.
We will also need to add and modify certain fields in our Solr schema. Open up the schema.xml...