# Multiple indices with different fields

**URL:** https://discuss.elastic.co/t/multiple-indices-with-different-fields/141462
**Category:** Elasticsearch
**Created:** [July 25, 2018, 1:17am UTC](https://discuss.elastic.co/t/multiple-indices-with-different-fields/141462 "2018-07-25T01:17:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![arshadsa](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@arshadsa](https://discuss.elastic.co/u/arshadsa)
#### Post date: [July 25, 2018, 1:17am UTC](https://discuss.elastic.co/t/multiple-indices-with-different-fields/141462/1 "2018-07-25T01:17:48Z")

</div>

Hi All,  
I know ES is not RDBMS and not possible to join but wanted to ask experts opinion here.  
I want to pull data from two different indices (idx1, idx2) with different fields as below

query: match: idx1.fld1=idx2.fld2 AND idx1.fld3 = idx2.fldx4

Any suggestions here, plz.

Thank you

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [July 25, 2018, 7:26am UTC](https://discuss.elastic.co/t/multiple-indices-with-different-fields/141462/2 "2018-07-25T07:26:28Z")

</div>

I think you answered yourself.

Joins are not possible unless you use the parent child feature.  
It's better to do the join at index time.

---

<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 22, 2018, 7:26am UTC](https://discuss.elastic.co/t/multiple-indices-with-different-fields/141462/3 "2018-08-22T07:26:41Z")

</div>

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