# Unable to search data in fields

**URL:** <https://discuss.elastic.co/t/unable-to-search-data-in-fields/385824>\
**Category:** Elasticsearch\
**Created:** [April 9, 2026, 9:57am UTC](https://discuss.elastic.co/t/unable-to-search-data-in-fields/385824 "2026-04-09T09:57:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![s1ackspace](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@s1ackspace](https://discuss.elastic.co/u/s1ackspace)\
**Post date:** [April 9, 2026, 9:57am UTC](https://discuss.elastic.co/t/unable-to-search-data-in-fields/385824/1 "2026-04-09T09:57:39Z")

</div>

Hi,

I have data in indice parsed with custom pipeline. After reindex that indice i can’t make aggregations (in discover module i see only empty fields) and visualizations from that data however data are still searchable.

Also i found that for some reason i have new fields that ends for `.keyword`. Like in screen below

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/3/53da3dca5bfdf8b3dfb1d7b96d45098cf8f97b38.png)

Anybody know how i can fix that?

Thank you very much in andvance.

---

<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:** [April 9, 2026, 10:17am UTC](https://discuss.elastic.co/t/unable-to-search-data-in-fields/385824/2 "2026-04-09T10:17:57Z")

</div>

Welcome!

You must apply the mapping before starting the reindex operation. Otherwise Elasticsearch is using the default mapping which is probably not what you had in the old index.

---

<div class="post-metadata">

**Author:** ![s1ackspace](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@s1ackspace](https://discuss.elastic.co/u/s1ackspace)\
**Post date:** [April 9, 2026, 10:29am UTC](https://discuss.elastic.co/t/unable-to-search-data-in-fields/385824/3 "2026-04-09T10:29:00Z")

</div>

Hi !

thanks for quick response. So i need to do like that?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/b/9b8a3bdc73fe61747e5b6827be0c38e18099eeed.png)

This is not really working for me, becouse new data that are on writing indice has wrong mapping

Also i notice additional thing

In my lab cluster that data types has configuration like below (which that mapping works for me)

```auto
          "sender": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },

```

And on my prod environment i have like that

```auto
          "sender": {
            "type": "keyword",
            "ignore_above": 1024
          },

```

---

<div class="post-metadata">

**Author:** ![s1ackspace](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@s1ackspace](https://discuss.elastic.co/u/s1ackspace)\
**Post date:** [April 9, 2026, 11:18am UTC](https://discuss.elastic.co/t/unable-to-search-data-in-fields/385824/4 "2026-04-09T11:18:44Z")

</div>

Seems like i resolved issue.

Soon i will write what i do

---

<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:** [April 9, 2026, 11:19am UTC](https://discuss.elastic.co/t/unable-to-search-data-in-fields/385824/5 "2026-04-09T11:19:08Z")

</div>

You need to create the mapping first. Something like:

```auto
DELETE myindex
PUT myindex
{
  // Mapping here
}
POST _reindex
{
  // Your reindex op
}

```
