You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/search/search_in_trash_reference.md
+56-8Lines changed: 56 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,16 +10,64 @@ When you [search for content items that are held in trash](search_api.md#searchi
10
10
which can be used by [`Ibexa\Contracts\Core\Repository\TrashService::findTrashItems`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-TrashService.html#method_findTrashItems).
11
11
Some sort clauses are exclusive to trash search.
12
12
13
-
!!! note
13
+
## Search Criteria
14
14
15
-
Searching through the trashed content items operates directly on the database, therefore you cannot use external search engines, such as Solr or Elasticsearch, and it's impossible to reindex the data.
15
+
| Criterion | Description |
16
+
|---|---|
17
+
|[ContentName](contentname_criterion.md)| Find content items by their name |
18
+
|[ContentTypeId](contenttypeid_criterion.md)| Find content items by their Content Type ID |
19
+
|[DateMetadata](datemetadata_criterion.md)| Find content items by metadata dates. Can use the additional exclusive target `DateMetadata::TRASHED` for trash-specific searches |
20
+
|[MatchAll](matchall_criterion.md)| Match all content items (no filtering) |
21
+
|[MatchNone](matchnone_criterion.md)| Match no content items (filter out all) |
22
+
|[SectionId](sectionid_criterion.md)| Find content items by their Section ID |
23
+
|[UserMetadata](usermetadata_criterion.md)| Find content items by user metadata (creator or modifier) |
16
24
17
-
!!! caution
25
+
## Logical operators
18
26
19
-
Make sure that you set the Criterion on the `filter` property.
20
-
It's impossible to use the `query` property, because the search in trash operation filters the database instead of querying.
27
+
| Operator | Description |
28
+
|---|---|
29
+
|[LogicalAnd](logicaland_criterion.md)| Composite criterion to group multiple criteria using the AND condition |
30
+
|[LogicalNot](logicalor_criterion.md)| Negate the result of the wrapped criterion |
31
+
|[LogicalOr](logicalor_criterion.md)| Composite criterion to group multiple criteria using the OR condition |
21
32
22
-
For detailed information about available search options, see:
0 commit comments