Using the Search component
By using the Search UI component, you can search for documents in a D1 repository. You can run the following search types:
- Search for a document by a query
- Search for a document by document properties.
Search by condition
When using this search type, you are presented with the Entry Type selection. Possible choices are the following:
- Content (the default)
- Folder
- Content and Folder.
This choice, is only for differentiating which API we will use, which are SearchContentsByCondition
, SearchFoldersByCondition
and SearchEntriesByCondition
, respectively.
This type of search, requires a condition to be typed in the search field. The condition (WHERE part of GMQL) describing the search criteria.
Example condition: name = 'foo' and description like 'bar*'. For enums the fully qualified name is needed - e.g. for versionStatus use 'enum(tribefire.adx.model.content.VersionStatus, PREVIOUS)'
For more information about GMQL, see the Tribefire documentation:
Search by properties
Search by properties is similar to search by condition, except that you do not need to manually create the conditions, but simply fill the desired filter properties with values. In the backend, it uses the same API as the search by condition, but the condition is created automatically based on the filled values.