It is possible to define a ObjectType searchCondition which when combined with searchObjectUI allows the result set to be limited to a few object types; this is particularly useful for article searches where typically we do not care about txt objects and their derived types.
The following will search for only article and img objects:
<searchObjectUI name="Simple">
...
<searchConditions>
<SearchNode
xmlns="http://www.teradp.com/schemas/GN4/1/SearchConditions.xsd"
xsi:type="SearchConditionList"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<List Op="In" Path="ObjectType.Id" >
<IdList>
<IdName Name="article" />
<IdName Name="img" />
</IdList>
</List>
</SearchNode>
</searchConditions>
</searchObjectUI>
The second example works if the search condition is in a file and not in searchObjectUI:
<SearchConditions
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.teradp.com/schemas/GN4/1/SearchConditions.xsd">
<SearchNode
xsi:type="SearchConditionList">
<List Op="In" Path="ObjectType.Id" >
<IdList>
<IdName Name="article" />
<IdName Name="img" />
</IdList>
</List>
</SearchNode>
</SearchConditions>
To test this search condition, see instructions in Test search conditions (hard-coded) with cmd4.