# Query two Indexes, only get results which match in both indexes

**URL:** <https://discuss.elastic.co/t/query-two-indexes-only-get-results-which-match-in-both-indexes/309480>\
**Category:** Elasticsearch\
**Created:** [July 13, 2022, 6:41am UTC](https://discuss.elastic.co/t/query-two-indexes-only-get-results-which-match-in-both-indexes/309480 "2022-07-13T06:41:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manoj-manoharan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manoj-manoharan/32/104211_2.png) [@manoj-manoharan](https://discuss.elastic.co/u/manoj-manoharan)\
**Post date:** [July 13, 2022, 6:41am UTC](https://discuss.elastic.co/t/query-two-indexes-only-get-results-which-match-in-both-indexes/309480/1 "2022-07-13T06:41:07Z")

</div>

I have a use case in Elasticsearch. I want to search two indexes containing different schemas and get result which matches the query

An example of what i want to achieve is here : [Query Multiple Indexes, but apply queries to specific index](https://discuss.elastic.co/t/query-multiple-indexes-but-apply-queries-to-specific-index/127858)

But my scenario requires me to get result which matches in both indexes.

I'll be happy to clarify further also

Thanks in Advance

---

<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 10, 2022, 6:41am UTC](https://discuss.elastic.co/t/query-two-indexes-only-get-results-which-match-in-both-indexes/309480/2 "2022-08-10T06:41:17Z")

</div>

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