# Question about searching with boolean operators

**URL:** <https://discourse.devontechnologies.com/t/question-about-searching-with-boolean-operators/58990>\
**Category:** DEVONthink To Go\
**Created:** [October 21, 2020, 2:58pm UTC](https://discourse.devontechnologies.com/t/question-about-searching-with-boolean-operators/58990 "2020-10-21T14:58:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryi](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/ryi/32/17108_2.png) [@Ryi](https://discourse.devontechnologies.com/u/Ryi)\
**Post date:** [October 21, 2020, 2:58pm UTC](https://discourse.devontechnologies.com/t/question-about-searching-with-boolean-operators/58990/1 "2020-10-21T14:58:19Z")

</div>

This is probably a silly question. If so, apologies.

If I search for a tag in DTTG, it works as expected.

```
tags:audio

```

If I use a boolean operator, it also works as expected:

```
tags:audio OR tags:video

```

My question is, how do I use the NOT operator? I’ve tried the following, but always get 0 results.

```
NOT tags:audio
NOT (tags:audio)
NOT tags:audio OR tags:video
NOT (tags:audio OR tags:video)

```

I suspect I’m probably doing something wrong in a quite silly way.

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [October 21, 2020, 3:15pm UTC](https://discourse.devontechnologies.com/t/question-about-searching-with-boolean-operators/58990/2 "2020-10-21T15:15:04Z")

</div>

Welcome @Ryi

That is not supported at this time. It’s expecting strings in the search field.  
I will note this as a feature request.

---

<div class="post-metadata">

**Author:** ![Ryi](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/ryi/32/17108_2.png) [@Ryi](https://discourse.devontechnologies.com/u/Ryi)\
**Post date:** [October 21, 2020, 3:19pm UTC](https://discourse.devontechnologies.com/t/question-about-searching-with-boolean-operators/58990/3 "2020-10-21T15:19:44Z")

</div>

Ah! I understand. Thank you very much for that, and for the quick response.

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [October 21, 2020, 3:25pm UTC](https://discourse.devontechnologies.com/t/question-about-searching-with-boolean-operators/58990/4 "2020-10-21T15:25:00Z")

</div>

You’re welcome 🙂

---

<div class="post-metadata">

**Author:** ![eboehnisch](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/eboehnisch/32/38699_2.png) [@eboehnisch](https://discourse.devontechnologies.com/u/eboehnisch)\
**Post date:** [November 17, 2020, 6:46pm UTC](https://discourse.devontechnologies.com/t/question-about-searching-with-boolean-operators/58990/5 "2020-11-17T18:46:18Z")

</div>

The `NOT` operator only works _between_ two terms but not as the _only_ operator. This is defined so in the FTS5 search language. But we’re keeping a note about this so we might find a solution in the future.
