# Negative class filter in dataset search

**URL:** <https://discuss.roboflow.com/t/negative-class-filter-in-dataset-search/1049>\
**Category:** 🛠️ Feature Reqs\
**Tags:** feature-request\
**Created:** [October 31, 2022, 12:46pm UTC](https://discuss.roboflow.com/t/negative-class-filter-in-dataset-search/1049 "2022-10-31T12:46:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kthx0](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/kthx0/32/856_2.png) [@kthx0](https://discuss.roboflow.com/u/kthx0)\
**Post date:** [October 31, 2022, 12:46pm UTC](https://discuss.roboflow.com/t/negative-class-filter-in-dataset-search/1049/1 "2022-10-31T12:46:20Z")

</div>

Hello. I want to search by images in my dataset that does NOT contain specific class.

For example: split:train class:-ball  
It means: select all images from the train dataset that don’t contain class “ball”

---

<div class="post-metadata">

**Author:** ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)\
**Post date:** [October 31, 2022, 4:14pm UTC](https://discuss.roboflow.com/t/negative-class-filter-in-dataset-search/1049/2 "2022-10-31T16:14:42Z")

</div>

Hi @kthx0 - this is a great feature request! I’ll send this to our product team now, and update you on plans for implementation as I learn more from them.

---

<div class="post-metadata">

**Author:** ![Stokholm](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/stokholm/32/1853_2.png) [@Stokholm](https://discuss.roboflow.com/u/Stokholm)\
**Post date:** [April 30, 2023, 9:09am UTC](https://discuss.roboflow.com/t/negative-class-filter-in-dataset-search/1049/3 "2023-04-30T09:09:00Z")

</div>

I too was just looking for this sort of feature. Has it been implemented yet?

---

<div class="post-metadata">

**Author:** ![thomasf1](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/thomasf1/32/2851_2.png) [@thomasf1](https://discuss.roboflow.com/u/thomasf1)\
**Post date:** [September 14, 2023, 12:15am UTC](https://discuss.roboflow.com/t/negative-class-filter-in-dataset-search/1049/4 "2023-09-14T00:15:19Z")

</div>

Would love that, too

---

<div class="post-metadata">

**Author:** ![Jacob\_Witt](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/jacob_witt/32/347_2.png) [@Jacob\_Witt](https://discuss.roboflow.com/u/Jacob_Witt)\
**Post date:** [September 14, 2023, 4:46pm UTC](https://discuss.roboflow.com/t/negative-class-filter-in-dataset-search/1049/5 "2023-09-14T16:46:54Z")

</div>

Great news for you all! We’re about to roll out a bunch of functionality that allows you to easily query annotated images.

Click on `Try advanced search` to get started. This search bar accepts queries like `class:car AND tag:needs-review NOT class:bus`, which will select all images with the class `car` and are tagged `needs-review` that DON’T have the class `bus`.

Lot more to come here soon 🙂

 ![CleanShot 2023-09-14 at 12.44.14](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/9/9fb2ef1230a34e81d5b16c0d2a9eb8cc29418e33.png)
