# Combining queries on different indices

**URL:** <https://discuss.elastic.co/t/combining-queries-on-different-indices/105130>\
**Category:** Elasticsearch\
**Created:** [October 24, 2017, 10:21pm UTC](https://discuss.elastic.co/t/combining-queries-on-different-indices/105130 "2017-10-24T22:21:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattkallo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkallo/32/109746_2.png) [@mattkallo](https://discuss.elastic.co/u/mattkallo)\
**Post date:** [October 24, 2017, 10:21pm UTC](https://discuss.elastic.co/t/combining-queries-on-different-indices/105130/1 "2017-10-24T22:21:32Z")

</div>

This could be a very basic question. I am new to ES, couldn't get any good answer from my research. Hence posting it here.

I have 2 indices that need to be searched with 2 separate sets of queries(keywords)

eg:  
Index 1 - "support-manual"; query based on terms "not able to reduce brightness"  
Index 2 - "user-guide"; query based on terms "adjusting brightness"

Now, my question is - Is there a way to combine/merge these 2 queries into a single query which will give me a scored result considering both. Basically results from both queries should be ranked in a "combined" way.

Can you point me to the right documentation if this already a supported feature?

---

<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:** [October 25, 2017, 2:00am UTC](https://discuss.elastic.co/t/combining-queries-on-different-indices/105130/2 "2017-10-25T02:00:58Z")

</div>

You cannot do scoring across two indices. So while you can query the two, each result set will be relative to the 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:** [November 22, 2017, 2:00am UTC](https://discuss.elastic.co/t/combining-queries-on-different-indices/105130/3 "2017-11-22T02:00:58Z")

</div>

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