# Search within 2 index where 'not in'

**URL:** <https://discuss.elastic.co/t/search-within-2-index-where-not-in/215012>\
**Category:** Kibana\
**Created:** [January 14, 2020, 4:01pm UTC](https://discuss.elastic.co/t/search-within-2-index-where-not-in/215012 "2020-01-14T16:01:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pbc3199](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pbc3199/32/48326_2.png) [@pbc3199](https://discuss.elastic.co/u/pbc3199)\
**Post date:** [January 14, 2020, 4:01pm UTC](https://discuss.elastic.co/t/search-within-2-index-where-not-in/215012/1 "2020-01-14T16:01:46Z")

</div>

I have 2 index in elasticsearch, **trxtxn** ( _transaction_ ) and **trxrsp** ( _response_ )

Both index have same unique id call header.serialnum. Is it possible to display document only for trxtxn which not in trxrsp? So, I can know which transaction don't have response yet.

TQ

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [February 6, 2020, 3:33pm UTC](https://discuss.elastic.co/t/search-within-2-index-where-not-in/215012/2 "2020-02-06T15:33:50Z")

</div>

If it's a simple ES search, you can just search on that index : `GET trxtxn/_search`  
If you have a index-pattern in kibana similar to `trx*` than you use the filter bar to filter the index field `_index`

---

<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 5, 2020, 3:34pm UTC](https://discuss.elastic.co/t/search-within-2-index-where-not-in/215012/3 "2020-03-05T15:34:03Z")

</div>

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