# Simple search for multiple tags

**URL:** <https://discuss.elastic.co/t/simple-search-for-multiple-tags/118916>\
**Category:** Kibana\
**Created:** [February 7, 2018, 7:48pm UTC](https://discuss.elastic.co/t/simple-search-for-multiple-tags/118916 "2018-02-07T19:48:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dorj1234](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dorj1234/32/21339_2.png) [@dorj1234](https://discuss.elastic.co/u/dorj1234)\
**Post date:** [February 7, 2018, 7:48pm UTC](https://discuss.elastic.co/t/simple-search-for-multiple-tags/118916/1 "2018-02-07T19:48:07Z")

</div>

Hello, despite looking at examples and documents I cannot run this simple search in the discover screen:  
tags: A and B  
Meaning all the records with both tag "A" and and tag "B"  
I can search for tags:A

Failed with:  
tags:(a and b)  
tags:{a and b}  
tags:(a,b)  
tags:a,b  
tags:a and b

---

<div class="post-metadata">

**Author:** ![Alona\_Nadler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alona_nadler/32/33499_2.png) [@Alona\_Nadler](https://discuss.elastic.co/u/Alona_Nadler)\
**Post date:** [February 7, 2018, 10:25pm UTC](https://discuss.elastic.co/t/simple-search-for-multiple-tags/118916/2 "2018-02-07T22:25:27Z")

</div>

Hi Dor,

try writing AND instead of and  
'And' and 'OR' should be used with capital letters  
"tags:a AND tags:b" should work

Let me know if it helps  
Alona

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [February 7, 2018, 10:37pm UTC](https://discuss.elastic.co/t/simple-search-for-multiple-tags/118916/3 "2018-02-07T22:37:01Z")

</div>

hi @dorj1234,

can you do either:  
`tags:(+a +b)`  
or  
`tags:(a AND b)`

---

<div class="post-metadata">

**Author:** ![dorj1234](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dorj1234/32/21339_2.png) [@dorj1234](https://discuss.elastic.co/u/dorj1234)\
**Post date:** [February 8, 2018, 5:22am UTC](https://discuss.elastic.co/t/simple-search-for-multiple-tags/118916/4 "2018-02-08T05:22:29Z")

</div>

Thank you both ! using "AND" worked. Did I miss that in the documentation somewhere?

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [February 8, 2018, 1:48pm UTC](https://discuss.elastic.co/t/simple-search-for-multiple-tags/118916/5 "2018-02-08T13:48:49Z")

</div>

yeah, it's a little buried in the Lucene documentation. [https://lucene.apache.org/core/2\_9\_4/queryparsersyntax.html#AND](https://lucene.apache.org/core/2_9_4/queryparsersyntax.html#AND)

---

<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:** [March 8, 2018, 1:49pm UTC](https://discuss.elastic.co/t/simple-search-for-multiple-tags/118916/6 "2018-03-08T13:49:06Z")

</div>

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