diff options
| author | orbiter <mc@yacy.net> | 2013-12-17 14:02:27 +0100 |
|---|---|---|
| committer | orbiter <mc@yacy.net> | 2013-12-17 14:02:27 +0100 |
| commit | 937273d4e3cf455d87700526499ca3a42f3e73b4 (patch) | |
| tree | edc36dc17e1b0b2dcd918dc086a0bb609ae88528 /examples | |
| parent | 4de3fefdb5a43feb83132d4ebd1a4c94639f6621 (diff) | |
added parsing of metadata to surrogate reading:
a dublin core record inside of surrogate input files may now contain
tokens within the namespace 'md' (short for: metadata). The token names
must be valid withing the namespace of the solr field names. All
md-tokens inside of surrogate files then overwrite values within solr
documents before they are written to the solr index. This makes it
possible to assign collection names to each surrogate entry and also
ranking information can be added. Please see the example file.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/surrogate_dublin_core.xml | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/examples/surrogate_dublin_core.xml b/examples/surrogate_dublin_core.xml index 2558b1a62..aa574c2df 100644 --- a/examples/surrogate_dublin_core.xml +++ b/examples/surrogate_dublin_core.xml @@ -15,7 +15,9 @@ --> <surrogates - xmlns:dc="http://purl.org/dc/elements/1.1/"> + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:md="http://localhost:8090/api/schema.xml?core=collection1" +> <record> <dc:Title><![CDATA[Alan Smithee]]></dc:Title> @@ -23,6 +25,15 @@ <dc:Description><![CDATA[Der als Filmregisseur oft genannte '''Alan Smithee''' ist ein Anagramm von „The Alias Men“.]]></dc:Description> <dc:Language>de</dc:Language> <dc:Date>2009-03-02T11:12:36Z</dc:Date> <!-- date is in ISO 8601 --> + <md:h1_txt>Alan Smithee</md:h1_txt> + <md:h2_txt>Geschichte</md:h2_txt> + <md:h3_txt>Entstehung</md:h3_txt> + <md:h3_txt>Aufdeckung und Abkehr</md:h3_txt> + <md:h2_txt>Verwendung</md:h2_txt> + <md:h2_txt>Literatur</md:h2_txt> + <md:h2_txt>Weblinks</md:h2_txt> + <md:h2_txt>Referenzen</md:h2_txt> + <md:collection_sxt>surrogate</md:collection_sxt> </record> </surrogates> |
