Store Content in IDOL Server > Configure Content Storage > Set up the Field Index Process > Index XML Attributes

Index XML Attributes
You can index XML attributes in the same way you index ordinary fields. However, you must refer to them using the following format for IDOL server to be able to read them:
*/tagName/_ATTR_attributeName
where,
 
For example:
<FARM ANIMAL="sheep" COLOR="white"> Farmer Joe </FARM>
To identify the ANIMAL attribute to IDOL server, refer to it as
*/FARM/_ATTR_ANIMAL
To identify the COLOR attribute to IDOL server, refer to it as
*/FARM/_ATTR_COLOR
Example:
<ROOM Name="The Kitchen">
<FURNITURE>Table</FURNITURE >
<ITEM Type="China">Dish</ITEM>
</ROOM>
To identify the Name attribute to IDOL server, refer to it as
*/ROOM/_ATTR_Name
To identify the Type attribute to IDOL server, refer to it as
*/ITEM/_ATTR_Type
To store XML attributes in Index fields
1.
2.
List an indexing process in the [FieldProcessing] section.
For example:
[FieldProcessing]
0=MyFirstProcess
2=IndexingFields
3.
Create a section for the indexing process, in which you create a property for the process (you define a property later using one or more applicable configuration parameters). Identify the fields that you want to associate with the processes.
 
NOTE A property that you create must not have the same name as the process.
For example:
[MyFirstProcess]
Property=MyFirstProperty
PropertyFieldCSVs=*/MyField,*/MySecondField
PropertyMatch=*myString*
 
[IndexingFields]
Property=IndexFields
PropertyFieldCSVs=*/FIELD/_ATTR_ANIMAL,*/FIELD/_ATTR_COLOR,*/ROOM/_ATTR_Name,*/ITEM/_ATTR_Type
4.
For example:
[MyFirstProperty]
HiddenType=true
 
[IndexFields]
Index=true
5.