- Documentation >
- Guide >
- Search >
- Search in trash reference
Search in trash reference
When you search for Content items that are held in trash, you can apply only a limited set of Search Criteria and Sort Clauses.
They can be used by eZ\Publish\API\Repository\TrashService::findTrashItems
only.
Search Criteria
Search Criterion |
Search based on |
Search type |
ContentTypeId |
ID of the Content item's Content Type |
Content and Location |
DateMetadata |
The date when Content item was created or last modified |
Content and Location |
MatchAll |
Returns all search results |
Content and Location |
MatchNone |
Returns no search results |
Content and Location |
SectionId |
ID of the Section the Content item was assigned to |
Content and Location |
UserMetadata |
The creator or modifier of a Content item |
Content and Location |
logical operators
Search Criterion |
Search based on |
Search type |
LogicalAnd |
Implements a logical AND Criterion. It matches if ALL of the provided Criteria match. |
Content and Location |
LogicalNot |
Implements a logical NOT Criterion. It matches if the provided Criterion doesn't match. |
Content and Location |
LogicalOr |
Implements a logical OR Criterion. It matches if at least one of the provided Criteria matches. |
Content and Location |
Sort Clauses
Sort Clause |
Sorting based on |
Search type |
ContentName |
Content item's name |
Content and Location |
ContentTypeName |
Name of the Content item's Content Type |
Trash only |
DateTrashed |
Date when the Content item was sent to trash |
Trash only |
Depth |
Location depth in the Content Tree |
Location only |
Path |
PathString of the Location |
Location only |
Priority |
Location priority |
Location only |
SectionName |
Name of the Section the Content item was assigned to |
Content and Location |
UserLogin |
Login of the Content item's creator |
Trash only |