= Search-Service =
Versuch mit Solr4
Config File (data-config.xml):
{{{
}}}
indexMeta_to_field.xsl konvertiert index.meta files in das doc-format zum Indizieren. Alle Einträge in bib werden dazu in Felder umgewandelt mit dem Prefix
"IM_". Ausserdem werden alle Felder noch in ein Feld "all-bib-data" gemappt.
{{{
IM_
}}}
In schema.xml:
{{{
archive-path
}}}
ExtendedXPathEntityProcessor ist eine fehlertolerantere Erweiterung von XPathEntityProcessor.
{{{
package de.mpiwg.itgroup.solr.transformer;
import java.util.Map;
import org.apache.solr.handler.dataimport.XPathEntityProcessor;
public class ExtendedXPathEntityProcessor extends XPathEntityProcessor {
public Map nextRow(){
Map r;
try {
r = super.nextRow();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
r = null;
}
return r;
}
}
}}}