# Collection Filters

Publisher's collection filters dynamically manage collection contents, automatically updating as new [data sources](/products/publisher/data-sources.md) match your filter criteria. These filters are available for both files and tables, helping administrators precisely define collection contents.

## How Filters Work

Publisher automatically updates collection contents based on your filter settings, ensuring collections stay current with your data sources. When new data is connected to [Publisher](https://github.com/DNAstack/dnastack-product-docs/blob/main/docs/publisher/collections/broken-reference/README.md), it's automatically evaluated against existing collection filters.

### Example Scenario

Let's say you create a collection to gather all files containing "portal" in their names:

1. Initial State:
   * One file in Publisher contains "portal"
   * Your collection has the <mark style="color:orange;">`Name`</mark> filter condition set to <mark style="color:orange;">`Contains`</mark> and the value to <mark style="color:orange;">`portal`</mark>
   * This collection contains only one file since it's the only file that has "portal" in its name
2. After Adding New Data:
   * A new data source with a "portal" file is connected
   * Collection automatically includes this new file
   * Collection now contains both matching files

#### Collections automatically:

* Evaluate new data against filter criteria
* Include matching content from new data sources
* Update without manual intervention
* Maintain consistent organization of your data


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.omics.ai/products/publisher/collections/collection-filters.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
