From 91500c092797da8e769f1e63ff0c6bd67aad0fc8 Mon Sep 17 00:00:00 2001 From: Marc Cromme Date: Mon, 13 Nov 2006 14:53:40 +0000 Subject: [PATCH] added section on special zebra:: elemset names, and updated docs to follow suit with changes alvis oai filter example --- doc/field-structure.xml | 41 ++++++++++++++++++++++++++++++++++++++++- doc/recordmodel-alvisxslt.xml | 18 +++++++++--------- 2 files changed, 49 insertions(+), 10 deletions(-) diff --git a/doc/field-structure.xml b/doc/field-structure.xml index 67f3224..6eda6a5 100644 --- a/doc/field-structure.xml +++ b/doc/field-structure.xml @@ -1,5 +1,5 @@ - + Field Structure and Character Sets @@ -261,6 +261,45 @@ would both produce the same results. +
+ Field structure debugging using the special + <literal>zebra::</literal> element set + + At some time, it is very hard to figure out what exactly has been + indexed how and in which indexes. Using the indexing stylesheet of + the Alvis filter, one can at least see which portion of the record + went into which index, but a similar aid does not exist for all + other indexing filters. + + + Starting with Zebra version + 2.0.4-2 or newer, one has the possibility to + use the special + zebra:: element set name, which is only defined for + the SUTRS and XML record + formats. + + Z> f @attr 1=dc_all minutter + Z> format sutrs + Z> elements zebra:: + Z> s 1+1 + + will display all indexed tokens from all indexed fields of the + first record, and it will display in SUTRS + record syntax, whereas + + Z> f @attr 1=dc_all minutter + Z> format xml + Z> elements zebra::dc_publisher + Z> s 1+1 + Z> elements zebra::dc_publisher:p + Z> s 1+1 + + displays in XML record syntax only the content + of the zebra string index dc_publisher, or + even only the type p phrase indexed part of it. + +
+ ALVIS XML Record Model and Filter Module @@ -113,15 +113,15 @@ z:id="oai:JTRS:CP-3290---Volume-I" z:rank="47896" z:type="update"> - <z:index name="oai:identifier" type="0"> + <z:index name="oai_identifier" type="0"> oai:JTRS:CP-3290---Volume-I</z:index> - <z:index name="oai:datestamp" type="0">2004-07-09</z:index> - <z:index name="oai:setspec" type="0">jtrs</z:index> - <z:index name="dc:all" type="w"> - <z:index name="dc:title" type="w">Proceedings of the 4th + <z:index name="oai_datestamp" type="0">2004-07-09</z:index> + <z:index name="oai_setspec" type="0">jtrs</z:index> + <z:index name="dc_all" type="w"> + <z:index name="dc_title" type="w">Proceedings of the 4th International Conference and Exhibition: World Congress on Superconductivity - Volume I</z:index> - <z:index name="dc:creator" type="w">Kumar Krishen and *Calvin + <z:index name="dc_creator" type="w">Kumar Krishen and *Calvin Burnham, Editors</z:index> </z:index> </z:record> @@ -289,7 +289,7 @@ - + @@ -298,7 +298,7 @@ - + -- 1.7.10.4