[This is preliminary documentation and is subject to change.]
Published: 2008-11-18
Type: Information
More information
In Content Studio version 5.2 a new synchronous event OnXmlIndexFieldDelete has been introduced. The idea behind this event is to make it possible to synchronize indexed xml data with an external source. Such a source can be used to provide more specialized and efficient seach capability that the xml filter queries provided by Content Studio. This event is fired every time an indexed Ept field is de-indexed thus removed from the Xml index.
An event handler for this event is implemented in the same fashion as any synchronous even handler (see the article .Creating an syncronous event handler). However, there is one special thing about this event that needs to be specifically document - the format of the passed in EPT xml content.
In the event handler's EventHandler method the content argument will contain a specially crafted xml fragment with the following syntax and meaning.
<ept isdraft="" documentId="0" categoryid="12345"> <field name="FieldName" tagId="34595" obsolete="True" /> </ept>
element/attribute | Value |
---|---|
ept/@isdraft | Always an empty string. |
ept/@documentId | Integer: Always zero (0). |
ept/@categoryId | Integer: Specifies the numeric identifier of the Ept document's category. |
ept/field | |
ept/field/@name | String: specifies the name of the field. |
ept/field/@tagId | Integer: Specifies the internal Xml index identifier of the field. |
ept/field/@obsolete | Boolean: Always 'True' since the field has just been obsolete |