mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
884bc86745
![image](https://github.com/Unleash/unleash/assets/964450/d8920542-78b6-48e1-96a9-6d8d60082849) ![image](https://github.com/Unleash/unleash/assets/964450/406d7f21-01e2-4b75-9b1e-b48f319669dd)
64 lines
3.3 KiB
Markdown
64 lines
3.3 KiB
Markdown
---
|
|
title: Search with filters/operators
|
|
---
|
|
|
|
:::info Availability
|
|
|
|
Search with filters/operators was introduced in **Unleash 5.9**.
|
|
|
|
:::
|
|
|
|
Search with filters/operators is a feature that allows users to conduct flexible data filtering. This feature is currently available on two specific pages: the Global Features Page and the Project Page.
|
|
|
|
## Search Bar
|
|
|
|
**Location**: The search bar is located at the top of the Global Features Page and the Project Page.
|
|
|
|
**Functionality**: It enables users to conduct searches for features using text. This is a **full-text search** that includes both feature names and feature descriptions.
|
|
|
|
**Multiple Keywords**: To search for multiple keywords, separate them with a comma. When searching with multiple keywords, there is effectively an **OR** condition between them, so the search will match items that contain either of the keywords. However, be aware that texts containing commas cannot be effectively searched, as the comma is used as a separator.
|
|
|
|
![The search bar, using multiple keywords](/img/search-bar.png)
|
|
|
|
|
|
## Search Filters Supported
|
|
|
|
The search functionality supports five filters:
|
|
|
|
1. **Created Date**: Allows filtering based on the creation date of features.
|
|
2. **Project**: Allows filtering by specific projects.
|
|
3. **Segment**: Allows filtering based on segments.
|
|
4. **State**: Allows filtering by the state of features.
|
|
5. **Tags**: Allows filtering using selected tags.
|
|
|
|
### Filter Flexibility
|
|
|
|
- **Created Date**: Supports single value selection with two operators:
|
|
- *On or After*: Filters features created on or after a specific date.
|
|
- *Is Before*: Filters features created before a specific date.
|
|
|
|
- **Project**: Allows single or multiple value selections with these operators:
|
|
- *Is*: Filters features belonging to a specific project.
|
|
- *Is Not*: Excludes features from a specific project.
|
|
- *Is Any Of*: (For multiple selections) Includes features from any of the selected projects.
|
|
- *Is None Of*: (For multiple selections) Excludes features from all the selected projects.
|
|
|
|
- **Segment** and **Tags**: These filters offer similar operators:
|
|
- *Include*: Filters features that include specific segments or tags.
|
|
- *Do Not Include*: Excludes features with specific segments or tags.
|
|
- *Include All Of*: (For multiple selections) Filters features that include all specified segments or tags.
|
|
- *Include Any Of*: (For multiple selections) Filters features that include any of the specified segments or tags.
|
|
- *Exclude If Any Of*: (For multiple selections) Excludes features if they include any of the specified segments or tags.
|
|
- *Exclude All*: (For multiple selections) Excludes features that include all specified segments or tags.
|
|
|
|
- **State**: Supports two values—Active or Stale—with two operators:
|
|
- *Is*: Filters features that are either active or stale.
|
|
- *Is Not*: Excludes features that are either active or stale.
|
|
|
|
![The search filters, using operators](/img/search-operators.png)
|
|
|
|
## API Support for Search
|
|
|
|
In addition to the user interface, Search with Operators is also supported through the API. All the filters and operators function identically to their counterparts in the UI, ensuring a consistent experience between the API and user interface.
|
|
Refer to [Search API](../reference/api/unleash/search-features) for full details.
|