# Filter - is one of

**URL:** <https://discuss.elastic.co/t/filter-is-one-of/113818>\
**Category:** Kibana\
**Created:** [January 2, 2018, 5:54pm UTC](https://discuss.elastic.co/t/filter-is-one-of/113818 "2018-01-02T17:54:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghouston10](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@ghouston10](https://discuss.elastic.co/u/ghouston10)\
**Post date:** [January 2, 2018, 5:54pm UTC](https://discuss.elastic.co/t/filter-is-one-of/113818/1 "2018-01-02T17:54:18Z")

</div>

Could someone explain to me how to use the 'is one of' filter.

I want to filter the index to display documents containing only flight numbers 103 and 469.

I have attached a screenshot displaying the section I need to enter the values into. ![elastic](https://us1.discourse-cdn.com/elastic/original/3X/1/5/1548f4882c7bd5e89d14ee5fb03a22ccf28737bb.PNG)

---

<div class="post-metadata">

**Author:** ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)\
**Post date:** [January 2, 2018, 9:25pm UTC](https://discuss.elastic.co/t/filter-is-one-of/113818/2 "2018-01-02T21:25:10Z")

</div>

It's a little weird, but it's pretty simple. You simply type in a value and hit enter. When you do, that value will become a "pill", and you can start typing in a new value, hitting enter to create another "pill" value. When you are done, just click save.

In your case, you'd type 103, press enter, then type 469, press enter again, and then click the save button.

![filter one of](https://us1.discourse-cdn.com/elastic/original/3X/d/5/d5b6b65fb5cb499991955544217d9c2576e32330.gif)

---

<div class="post-metadata">

**Author:** ![Loczeski](https://avatars.discourse-cdn.com/v4/letter/l/cab0a1/32.png) [@Loczeski](https://discuss.elastic.co/u/Loczeski)\
**Post date:** [January 22, 2018, 12:41pm UTC](https://discuss.elastic.co/t/filter-is-one-of/113818/3 "2018-01-22T12:41:59Z")

</div>

How to do when I have 50 values to filter? Copy/paste it doesn't work.

---

<div class="post-metadata">

**Author:** ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)\
**Post date:** [January 22, 2018, 4:17pm UTC](https://discuss.elastic.co/t/filter-is-one-of/113818/4 "2018-01-22T16:17:57Z")

</div>

When you say "Copy/paste it doesn't work", I assume you mean only with that input, since it does the whole "enter to create pill" thing. You can edit the filter manually using the "Edit Query DSL" control on the top right. This will allow you to modify the filter's JSON directly. That should allow you to paste multiple filters at once.

---

<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:** [February 19, 2018, 4:18pm UTC](https://discuss.elastic.co/t/filter-is-one-of/113818/5 "2018-02-19T16:18:42Z")

</div>

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