# Joins in elasticsearch

**URL:** https://discuss.elastic.co/t/joins-in-elasticsearch/296810
**Category:** Elasticsearch
**Created:** [February 10, 2022, 7:43am UTC](https://discuss.elastic.co/t/joins-in-elasticsearch/296810 "2022-02-10T07:43:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ernesto\_Rodolfo\_Cast](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ernesto_rodolfo_cast/32/99049_2.png) [@Ernesto\_Rodolfo\_Cast](https://discuss.elastic.co/u/Ernesto_Rodolfo_Cast)
#### Post date: [February 10, 2022, 7:43am UTC](https://discuss.elastic.co/t/joins-in-elasticsearch/296810/1 "2022-02-10T07:43:46Z")

</div>

Hi, I have several index aliases and I need to make a SQL-like join between them. Elasticsearch does not allow to create aliases of aliases. Is there any way to solve this problem.

---

<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: [February 10, 2022, 8:24am UTC](https://discuss.elastic.co/t/joins-in-elasticsearch/296810/2 "2022-02-10T08:24:00Z")

</div>

Reindex into a single index that contains the data you need would be the best approach.

---

<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 10, 2022, 8:25am UTC](https://discuss.elastic.co/t/joins-in-elasticsearch/296810/3 "2022-03-10T08:25:01Z")

</div>

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