# Elasticsearch not getting data from filter after index migration

**URL:** <https://discuss.elastic.co/t/elasticsearch-not-getting-data-from-filter-after-index-migration/340467>\
**Category:** Elasticsearch\
**Tags:** docker, ilm-index-lifecycle-management\
**Created:** [August 9, 2023, 1:41pm UTC](https://discuss.elastic.co/t/elasticsearch-not-getting-data-from-filter-after-index-migration/340467 "2023-08-09T13:41:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cosskay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cosskay/32/124476_2.png) [@cosskay](https://discuss.elastic.co/u/cosskay)\
**Post date:** [August 9, 2023, 1:41pm UTC](https://discuss.elastic.co/t/elasticsearch-not-getting-data-from-filter-after-index-migration/340467/1 "2023-08-09T13:41:58Z")

</div>

after moving an index from one cluster to another, the index does not search for data by filter. The number of Lucene docs is the same in both indexes. All indices Health (green) . Index cloned from VM in openshift . Elasticsearch 7.17  
Index transfer

// curl -k --user login:password --request POST "elastic.local/\_reindex?pretty" --header 'Content-Type: application/json' --data ' {"source": {"remote": {"host": "0.0.0.0:9200"}, "index":"index-name"},"dest":{"index":"index-name-clone"}}'

In the photo, the result of the filter by id is the original index and cloned index

 ![diss](https://us1.discourse-cdn.com/elastic/original/3X/7/5/75f434d702c30328f3571392dd8048b71c6d52f7.png)

---

<div class="post-metadata">

**Author:** ![eMitch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emitch/32/93607_2.png) [@eMitch](https://discuss.elastic.co/u/eMitch)\
**Post date:** [August 9, 2023, 8:33pm UTC](https://discuss.elastic.co/t/elasticsearch-not-getting-data-from-filter-after-index-migration/340467/2 "2023-08-09T20:33:24Z")

</div>

Hi @cosskay and welcome to the community!

Can you compare the index mappings between the two?  
Was the index mapping moved prior to the remote-reindex command?

---

<div class="post-metadata">

**Author:** ![cosskay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cosskay/32/124476_2.png) [@cosskay](https://discuss.elastic.co/u/cosskay)\
**Post date:** [August 10, 2023, 6:17am UTC](https://discuss.elastic.co/t/elasticsearch-not-getting-data-from-filter-after-index-migration/340467/3 "2023-08-10T06:17:23Z")

</div>

> [@eMitch](#):
>
> Hi @cosskay and welcome to the community!
> 
> Can you compare the index mappings between the two?  
> Was the index mapping moved prior to the remote-reindex command?

Hi , Visually, the indexes are the same. The meaning of Lucene docs is equivalent

---

<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:** [September 7, 2023, 6:17am UTC](https://discuss.elastic.co/t/elasticsearch-not-getting-data-from-filter-after-index-migration/340467/4 "2023-09-07T06:17:54Z")

</div>

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