# Is there a way query 2 indx base on their same field?

**URL:** <https://discuss.elastic.co/t/is-there-a-way-query-2-indx-base-on-their-same-field/227330>\
**Category:** Elasticsearch\
**Created:** [April 9, 2020, 1:27pm UTC](https://discuss.elastic.co/t/is-there-a-way-query-2-indx-base-on-their-same-field/227330 "2020-04-09T13:27:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bainan19820202](https://avatars.discourse-cdn.com/v4/letter/b/439d5e/32.png) [@bainan19820202](https://discuss.elastic.co/u/bainan19820202)\
**Post date:** [April 9, 2020, 1:27pm UTC](https://discuss.elastic.co/t/is-there-a-way-query-2-indx-base-on-their-same-field/227330/1 "2020-04-09T13:27:20Z")

</div>

for example  
index 1 has field  
A error\_code:value  
B error\_group:value  
index 2 was imported from a csv file which includes the explanation for those error logs

so what I want to achieve is based on the index1 ' error code and group to find the index 2's explanation, is it possible to use elastic stack to do that?

---

<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:** [May 7, 2020, 1:27pm UTC](https://discuss.elastic.co/t/is-there-a-way-query-2-indx-base-on-their-same-field/227330/2 "2020-05-07T13:27:23Z")

</div>

Closed on May 7, 2020, 1:27pm UTC

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