Skip to content

Commit

Permalink
refactor: remove archive filter
Browse files Browse the repository at this point in the history
  • Loading branch information
sitepark-veltrup committed Oct 31, 2024
1 parent 6a50ff9 commit dac5795
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
3 changes: 0 additions & 3 deletions docs/develop/bundles/search/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,21 +279,18 @@ $builder->text('chocolate')
new CategoriesFilter(['15949']),
new GroupsFilter(['16811']),
new SitesFilter(['3952']),
new ArchiveFilter(false),
new AndFilter([
new ObjectTypesFilter(['news', 'events']),
new CategoriesFilter(['15949']),
new GroupsFilter(['16811']),
new SitesFilter(['3952']),
new ArchiveFilter(false),
new QueryFilter('myField:myValue'),
]),
new OrFilter([
new ObjectTypesFilter(['news', 'events']),
new CategoriesFilter(['15949']),
new GroupsFilter(['16811']),
new SitesFilter(['3952']),
new ArchiveFilter(false),
new QueryFilter('myField:myValue'),
]),
new NotFilter(
Expand Down
19 changes: 0 additions & 19 deletions docs/develop/graphql/search/filtered-search.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,25 +345,6 @@ query {
}
```

## Including markted as archived

Articles can be marked as achrivated in the CMS. This flag ensures that these articles are not normally included in the search. This can be used for news, for example, to include only the latest news in the general search. For a special search, such as a news archive search, the "Including marked as archived" filter can be used to also find archived articles.

```graphql
query {
search(input: { filter: [{ objectTypes: ["news"] }, { archive: true }] }) {
total
offset
queryTime
results {
id
name
location
}
}
}
```

## Complex filter

Complex filter queries can be constructed by combining one or more queries using `and`, `or` or `not` queries.
Expand Down

0 comments on commit dac5795

Please sign in to comment.