Whn a searchCondition features the system path "ObjectType.Id", it is possible in the IdList element to specify either the Id or the Name of the object types to be searched.
It includes also the conditions on Enum and EnumSet attributes. You can either set the Id attribute of the the various IdList/IdName elements to the 0-based index of the enum entry or enumSet entry to consider, or you can set the entry name.
For example: Suppose the object type 'myObjectType' has an enum attribute defined as follow:
<xs:element name="myEnumAttr">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="alpha"/>
<xs:enumeration value="beta"/>
<xs:enumeration value="gamma"/>
<xs:enumeration value="delta"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
Then the following search condition:
<searchConditions>
<SearchNode xmlns="http://www.teradp.com/schemas/GN4/1/SearchConditions.xsd" xsi:type="FulltextNode" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<List Op="In" Path="[myObjectType.myEnumAttr]" IsFulltext="true">
<IdList>
<IdName Id="2" />
</IdList>
</List>
</SearchNode>
</searchConditions>
can also be written like this:
<searchConditions>
<SearchNode xmlns="http://www.teradp.com/schemas/GN4/1/SearchConditions.xsd" xsi:type="FulltextNode" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<List Op="In" Path="[myObjectType.myEnumAttr]" IsFulltext="true">
<ReferencedObjects />
<IdList>
<IdName Name="gamma" />
</IdList>
</List>
</SearchNode>
</searchConditions>