# Help making a script for a predicate\_token\_filter

**URL:** <https://discuss.elastic.co/t/help-making-a-script-for-a-predicate-token-filter/188942>\
**Category:** Elasticsearch\
**Created:** [July 4, 2019, 3:27pm UTC](https://discuss.elastic.co/t/help-making-a-script-for-a-predicate-token-filter/188942 "2019-07-04T15:27:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Guzman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_guzman/32/83587_2.png) [@John\_Guzman](https://discuss.elastic.co/u/John_Guzman)\
**Post date:** [July 4, 2019, 3:27pm UTC](https://discuss.elastic.co/t/help-making-a-script-for-a-predicate-token-filter/188942/1 "2019-07-04T15:27:42Z")

</div>

Hello!

I want to make a token filter that deletes all the words that contains "@" or "https", i know that i should use the predicate\_token\_filter but certainly i don't know how to elaborate the script. It would be great if someone can help me or give me a guidance with that.

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 1, 2019, 3:27pm UTC](https://discuss.elastic.co/t/help-making-a-script-for-a-predicate-token-filter/188942/2 "2019-08-01T15:27:43Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
