# How to reindex data from a Async search?

**URL:** <https://discuss.elastic.co/t/how-to-reindex-data-from-a-async-search/255592>\
**Category:** Elasticsearch\
**Created:** [November 16, 2020, 8:42pm UTC](https://discuss.elastic.co/t/how-to-reindex-data-from-a-async-search/255592 "2020-11-16T20:42:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kelk](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@kelk](https://discuss.elastic.co/u/kelk)\
**Post date:** [November 16, 2020, 8:42pm UTC](https://discuss.elastic.co/t/how-to-reindex-data-from-a-async-search/255592/1 "2020-11-16T20:42:32Z")

</div>

we have a large dataset which times out in normal watcher/search and were planning to use "async" search. But after posting such an `async` search, how to then put the output into another index?  
We need the summary information into another index like a summary index for speedier comparison

```auto
POST /sales*/_async_search?size=0
{
  "sort": [
    { "date": { "order": "asc" } }
  ],
  "aggs": {
    "sale_date": {
      "date_histogram": {
        "field": "date",
        "calendar_interval": "1h"
      }
    }
  }
}

```

---

<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:** [November 16, 2020, 10:30pm UTC](https://discuss.elastic.co/t/how-to-reindex-data-from-a-async-search/255592/2 "2020-11-16T22:30:57Z")

</div>

Why not use a reindex job? [https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-reindex.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-reindex.html), it can be run async [https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-reindex.html#docs-reindex-task-api](https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-reindex.html#docs-reindex-task-api)

---

<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:** [December 14, 2020, 10:31pm UTC](https://discuss.elastic.co/t/how-to-reindex-data-from-a-async-search/255592/3 "2020-12-14T22:31:09Z")

</div>

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