X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=doc%2Ffield-structure.xml;h=67619d28db6f469a050220102a2c1b50f7359f9c;hb=5f9da49ae7414fbb37d999a389c8d39fd057f5c2;hp=67f3224d8514a0b2b2659a4950fa95a2d21772bc;hpb=3792780712898860435acfb9bf38c00f98cee037;p=idzebra-moved-to-github.git diff --git a/doc/field-structure.xml b/doc/field-structure.xml index 67f3224..67619d2 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::index::</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::index:: 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::index:: + 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::index::dc_publisher + Z> s 1+1 + Z> elements zebra::index::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. + +