# Search in trash reference

When you [search for content items that are held in trash](https://doc.ibexa.co/en/latest/search/search_api/#search-in-trash), you can apply only a limited subset of Search Criteria and Sort Clauses which can be used by [`Ibexa\Contracts\Core\Repository\TrashService::findTrashItems`](https://doc.ibexa.co/en/latest/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-TrashService.html#method_findTrashItems). Some sort clauses are exclusive to trash search.

## Search Criteria

- [ContentName](https://doc.ibexa.co/en/latest/search/criteria_reference/contentname_criterion/index.md)
- [ContentTypeId](https://doc.ibexa.co/en/latest/search/criteria_reference/contenttypeid_criterion/index.md)
- [DateMetadata](https://doc.ibexa.co/en/latest/search/criteria_reference/datemetadata_criterion/index.md) (which can use the additional exclusive target `DateMetadata::TRASHED`)
- [MatchAll](https://doc.ibexa.co/en/latest/search/criteria_reference/matchall_criterion/index.md)
- [MatchNone](https://doc.ibexa.co/en/latest/search/criteria_reference/matchnone_criterion/index.md)
- [SectionId](https://doc.ibexa.co/en/latest/search/criteria_reference/sectionid_criterion/index.md)
- [UserMetadata](https://doc.ibexa.co/en/latest/search/criteria_reference/usermetadata_criterion/index.md)

## Logical operators

- [LogicalAnd](https://doc.ibexa.co/en/latest/search/criteria_reference/logicaland_criterion/index.md)
- [LogicalNot](https://doc.ibexa.co/en/latest/search/criteria_reference/logicalor_criterion/index.md)
- [LogicalOr](https://doc.ibexa.co/en/latest/search/criteria_reference/logicalor_criterion/index.md)

## Sort Clauses

- [ContentName](https://doc.ibexa.co/en/latest/search/sort_clause_reference/contentname_sort_clause/index.md)
- [ContentTypeName](https://doc.ibexa.co/en/latest/search/sort_clause_reference/contenttypename_sort_clause/index.md)
- [DateTrashed](https://doc.ibexa.co/en/latest/search/sort_clause_reference/datetrashed_sort_clause/index.md)
- [Depth](https://doc.ibexa.co/en/latest/search/sort_clause_reference/depth_sort_clause/index.md)
- [Path](https://doc.ibexa.co/en/latest/search/sort_clause_reference/path_sort_clause/index.md)
- [Priority](https://doc.ibexa.co/en/latest/search/sort_clause_reference/priority_sort_clause/index.md)
- [SectionName](https://doc.ibexa.co/en/latest/search/sort_clause_reference/sectionname_sort_clause/index.md)
- [UserLogin](https://doc.ibexa.co/en/latest/search/sort_clause_reference/userlogin_sort_clause/index.md)
