X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=doc%2Ffield-structure.xml;fp=doc%2Ffield-structure.xml;h=6eda6a54d14a45a602519a1090e541e6053f8c0a;hp=67f3224d8514a0b2b2659a4950fa95a2d21772bc;hb=91500c092797da8e769f1e63ff0c6bd67aad0fc8;hpb=f3d280a5a9ee4a99fbf738d16a8a58d9ef498da2 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. + +