# Marcação em massa de tópicos com base em palavras-chave

**URL:** <https://meta.discourse.org/t/bulk-tagging-topics-based-on-keywords/120526>\
**Category:** Product Support\
**Created:** [Junho 16, 2019, 4:20pm UTC](https://meta.discourse.org/t/bulk-tagging-topics-based-on-keywords/120526 "2019-06-16T16:20:48Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)\
**Post date:** [Junho 16, 2019, 4:20pm UTC](https://meta.discourse.org/t/bulk-tagging-topics-based-on-keywords/120526/1 "2019-06-16T16:20:48Z")

</div>

Hi,

In order to use the new ‘[no ads for tags](https://meta.discourse.org/t/exclude-topic-from-adsense/95281/17)’ support in the ad plugin, we need to mass-tag any ‘nswf’ topics on our forum based on specific keywords. For example, any topic that contains the word ‘nude’ in the title or any post in the topic needs to be tagged nsfw.

We have a list of such keywords, so the logic that I’m looking for is:

```plaintext
IF the topic title OR any post in this topic
CONTAINS word-1 or word-2 ..
THEN apply a tag to the topic

```

I found [this topic](https://meta.discourse.org/t/batch-tagging-through-console/47602/2), but my case seems a little more complex. Can someone help me out with a query to achieve this?

---

_[View the full topic](https://meta.discourse.org/t/bulk-tagging-topics-based-on-keywords/120526)._
