You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2009/07/08 09:38:50 UTC
[Solr Wiki] Update of "DIHQuickStart" by ShalinMangar
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/DIHQuickStart
The comment on the change is:
Fixed typos
------------------------------------------------------------------------------
[[TableOfContents]]
= Index a DB table directly into Solr =
- Step 1 : Edit your solrConfig.xml to add the request handler
+ Step 1 : Edit your solrconfig.xml to add the request handler
{{{
<requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler">
<lst name="defaults">
@@ -29, +29 @@
</dataConfig>
}}}
- ensure that your solr schema (schema.xml) has the fields 'id' , 'name' , 'desc' . Change the appropriate details in the dataconfig.xml
+ Ensure that your solr schema (schema.xml) has the fields 'id', 'name', 'desc'. Change the appropriate details in the dataconfig.xml
- Step 3 : Run the command http://solr-host:port/dataimpor?command=full-import . keep in mind that everytime full-import is executed the index is cleaned up. If you do not wish that to happen add clean=false . eg : http://solr-host:port/dataimpor?command=full-import&clean=false
+ Step 3 : Run the command http://solr-host:port/dataimport?command=full-import. Keep in mind that every time a full-import is executed the index is cleaned up. If you do not wish that to happen add clean=false. For example: http://solr-host:port/dataimpor?command=full-import&clean=false
== Index the fields in different names ==
Step: 1 Change the data-config as follows :
@@ -52, +52 @@
</document>
</dataConfig>
}}}
- Step 2 : This time the fields will be writtten to the solr fields 'solr_id' , 'solr_name' , solr_desc' . You must have these fields in the schema.xml.
+ Step 2 : This time the fields will be written to the solr fields 'solr_id', 'solr_name', solr_desc'. You must have these fields in the schema.xml.
Step 3 : Run the command http://solr-host:port/dataimpor?command=full-import
= Index data from multiple tables into Solr =
@@ -80, +80 @@
}}}
Step 2: The schema.xml should have the solr_details field
- Step : 3: Run the full-import command
+ Step 3: Run the full-import command
+