# Fail to exclude Post by Term localhost:9200/abc-post-1/post/\_search/?mode=exclude:Sales&q=post\_type:%22jobs%22&size=1000&from=1 #59457

**URL:** https://discuss.elastic.co/t/fail-to-exclude-post-by-term-localhost-9200-abc-post-1-post-search-mode-exclude-sales-q-post-type-22jobs-22-size-1000-from-1-59457/241374
**Category:** Elasticsearch
**Created:** [July 16, 2020, 12:18am UTC](https://discuss.elastic.co/t/fail-to-exclude-post-by-term-localhost-9200-abc-post-1-post-search-mode-exclude-sales-q-post-type-22jobs-22-size-1000-from-1-59457/241374 "2020-07-16T00:18:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![iexpertini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iexpertini/32/32604_2.png) [@iexpertini](https://discuss.elastic.co/u/iexpertini)
#### Post date: [July 16, 2020, 12:18am UTC](https://discuss.elastic.co/t/fail-to-exclude-post-by-term-localhost-9200-abc-post-1-post-search-mode-exclude-sales-q-post-type-22jobs-22-size-1000-from-1-59457/241374/1 "2020-07-16T00:18:40Z")

</div>

Hi Guys,

Need help to filter the ElasticSearch Result.

I don't want to display the post that comes from certain post author.

We try to filter it by localhost:9200/abc-post-1/post/\_search/?mode=exclude:authorname&q=post\_type:%22articles%22&size=1000&from=1

Every time we try but it fails to exclude post from that author. So please can anyone guide it on us.

Thanks,  
HS

---

<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 13, 2020, 12:18am UTC](https://discuss.elastic.co/t/fail-to-exclude-post-by-term-localhost-9200-abc-post-1-post-search-mode-exclude-sales-q-post-type-22jobs-22-size-1000-from-1-59457/241374/2 "2020-08-13T00:18:47Z")

</div>

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