Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change 
notification.

The following page has been changed by ShalinMangar:
http://wiki.apache.org/solr/DataImportHandler

The comment on the change is:
Updating instructions for full-import example

------------------------------------------------------------------------------
  
  This is a relational model of the same schema that Solr currently ships with. 
We will use this as an example to build a data-config.xml for 
DataImportHandler. We've created a sample database with this schema in HSQLDB.  
To run it, do the following steps:
  
-  1. Download attachment:example-solr-home.jar and use ''jar -xvf 
example-solr-home.jar'' to extract it to your local drive. This jar file 
contains a complete solr home with all the configuration you need to execute 
this as well as the RSS example (given later in this page). It also contains an 
example hsqldb schema (in hsqldb folder)
-  2. In the example-solr-home, there is a ''solr.war''. Copy this war file to 
your tomcat/jetty webapps folder. In addition to the 
[http://issues.apache.org/jira/browse/SOLR-469 SOLR-469] patch, this war file 
also contains the JDBC driver for hsqldb needed to execute this example. If you 
want to deploy it with your existing Solr installation, just drop in the 
'dataimport.jar' (find it in the jar) to WEB-INF/lib of your deployed Solr 
webapp.
-  3. Use the ''solr'' folder inside ''example-data-config'' folder as your 
solr home.
+  1. Look at the example/example-DIH directory in the solr download. It 
contains a complete solr home with all the configuration you need to execute 
this as well as the RSS example (given later in this page).
+  2. Extract the hsqldb.zip inside the example-DIH directory. This has an 
example hsqldb schema (in hsqldb directory)
+  3. Download the hsqldb jdbc driver jar from hsqldb.org and save it inside 
example-DIH/solr/db/lib directory
+  2. Use the ''example-DIH/solr'' directory as your solr home.
-  4. Hit [http://localhost:8983/solr/dataimport] with a browser to verify the 
configuration.
+  3. Hit [http://localhost:8983/solr/dataimport] with a browser to verify the 
configuration.
-  5. Hit [http://localhost:8983/solr/dataimport?command=full-import] to do a 
full import.
+  4. Hit [http://localhost:8983/solr/dataimport?command=full-import] to do a 
full import.
  
- The ''solr'' folder given in the above jar is a MultiCore Solr home. It has 
two cores, one for the DB example (this one) and one for an RSS example (new 
feature).
+ The ''solr'' directory is a MultiCore Solr home. It has two cores, one for 
the DB example (this one) and one for an RSS example (new feature).
  
   * The data-config.xml used for this example is:
  

Reply via email to