User:Stefahn/Solr Docu

This file is a mix-up between English and German :)

Installation

 * Extension:SolrStore/Install_Solr
 * http://www.icuriousmedia.com/blog/how-to-install-apache-solr-on-windows-xp-1439.php
 * The folder solr in tomcat/webapps is generated automatically. One doesn't need to copy it from other locations.

Multicore

 * Multicore means one has more than one Solr core
 * Purpose: you can have a single Solr instance with separate configurations and indexes - while having the convenience of unified administration. More info: http://wiki.apache.org/solr/CoreAdmin
 * Cores are defined in solr.xml

Changing schema.xml and reindex
Note that usually when you change the schema.xml you have not only to restart solr, but also rebuild the index. In general, you need to be very careful when you change the schema without reindexing. The most efficient/complete way is to... 1. Stop your application server 2. Change your schema.xml file 3. Delete the index directory in your data directory (Stefan: in the core directory) 4. Start your application server (Solr will detect that there is no existing index and make a new one) 5. Re-Index your data (see next section)

Alternative: http://wiki.apache.org/solr/CoreAdmin#RELOAD

Re-indexing

 * Script (I don't know how to use up2now): http://www.jason-palmer.com/2011/05/how-to-reindex-a-solr-database/
 * What helps to re-index: modify articles and save afterwards
 * There seems to be no problem if one quits XAMPP - data is still there the next time when one launches XAMPP again...

Links

 * http://php-solr-lucene.blogspot.com/

schema.xml

 * zu finden unter core0/conf/
 * in schema.xml werden sowohl die Felder als auch die dazugehörigen Feldtypen definiert
 * auf Feldtypen werden bestimmte Analyzer angewendet
 * Achtung: Kommentar in Kommentar führt zu Error