The below search condition returns all objects of the specified hard-coded type, e.g. folderObject:
<SearchConditions
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.teradp.com/schemas/GN4/1/SearchConditions.xsd"
ObjectTypeName="folderObject"
/>
It gets used to reindex all objects of that type in the database. For the procedure, see Build/rebuild Exalead indexes.
The similar syntax, more-object-types-ready, to return all article objects:
<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" />
</IdList>
</List>
</SearchNode>
</SearchConditions>
Note: you cannot use the above for folderObject, linkObject and other ancestors -for them, use the first example in this topic.
Assuming you want to return all articles and imgs, then use the below one:
<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 the above search condition, see instructions in Test search conditions (hard-coded) with cmd4.