# Help about the Filter aggregation in Kibana

**URL:** <https://discuss.elastic.co/t/help-about-the-filter-aggregation-in-kibana/35221>\
**Category:** Kibana\
**Created:** [November 21, 2015, 4:03pm UTC](https://discuss.elastic.co/t/help-about-the-filter-aggregation-in-kibana/35221 "2015-11-21T16:03:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sepide\_sinaei](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sepide\_sinaei](https://discuss.elastic.co/u/sepide_sinaei)\
**Post date:** [November 21, 2015, 4:03pm UTC](https://discuss.elastic.co/t/help-about-the-filter-aggregation-in-kibana/35221/1 "2015-11-21T16:03:16Z")

</div>

Hello,

I have a problem to know how to insert the Filters aggregation in Kibana

My data has a field that name is "Text" that is string and contains some words

I want to apply a filter in this way:

1. Text fields that contains specific word
2. Text fields that not contains of that specific word

I dont know how should I have to write this.

I would be appreciate if some one can help me about this

Thanks  
Sinaei

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 22, 2015, 11:37pm UTC](https://discuss.elastic.co/t/help-about-the-filter-aggregation-in-kibana/35221/2 "2015-11-22T23:37:01Z")

</div>

Are you on KB3?

---

<div class="post-metadata">

**Author:** ![sepide\_sinaei](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sepide\_sinaei](https://discuss.elastic.co/u/sepide_sinaei)\
**Post date:** [November 23, 2015, 8:24am UTC](https://discuss.elastic.co/t/help-about-the-filter-aggregation-in-kibana/35221/3 "2015-11-23T08:24:04Z")

</div>

No in KB4.

Do you know what can I do?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 25, 2015, 6:52am UTC](https://discuss.elastic.co/t/help-about-the-filter-aggregation-in-kibana/35221/4 "2015-11-25T06:52:51Z")

</div>

Start by reading [https://www.elastic.co/guide/en/kibana/current/discover.html#search](https://www.elastic.co/guide/en/kibana/current/discover.html#search)  
It'll take you through how to write a query for the filter.

---

<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:** [July 6, 2017, 2:08pm UTC](https://discuss.elastic.co/t/help-about-the-filter-aggregation-in-kibana/35221/5 "2017-07-06T14:08:20Z")

</div>


