# Text to Keyword fields - cant find index

**URL:** <https://discuss.elastic.co/t/text-to-keyword-fields-cant-find-index/365312>\
**Category:** Elastic Search\
**Created:** [August 21, 2024, 9:19pm UTC](https://discuss.elastic.co/t/text-to-keyword-fields-cant-find-index/365312 "2024-08-21T21:19:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Catalina\_Sabogal\_Ort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/catalina_sabogal_ort/32/125037_2.png) [@Catalina\_Sabogal\_Ort](https://discuss.elastic.co/u/Catalina_Sabogal_Ort)\
**Post date:** [August 21, 2024, 9:19pm UTC](https://discuss.elastic.co/t/text-to-keyword-fields-cant-find-index/365312/1 "2024-08-21T21:19:12Z")

</div>

We've been working on an Elasticsearch and Kibana task where the main goal was to work with a field (`farmerName_profile.birthday_str`) in an index that originally stored it as a `text` type. We attempted several steps to solve issues related to searching and reindexing:

1. **Issue Background** :

- The field `farmerName_profile.birthday_str` was initially of type `text`, which caused challenges when attempting to search or perform keyword operations.
- We created a new index (`farmers-data`) where we modified the mapping of this field to include both `text` and `keyword` subfields.

1. **Reindexing Attempt** :

- We tried reindexing data from the original index to the newly created `farmers-data` index, but encountered issues where the original index wasn't correctly identified, leading to errors.

1. **Current Status** :

- We've successfully created a document in the new `farmers-data` index and verified the new mapping, but the original index still doesn't show the expected entries when searching for the `birthday_str` field.
- We suspect that the original index might have had specific configurations or that the data was not reindexed correctly.

**Request for Help** :

- We need assistance with correctly identifying the original index, ensuring accurate reindexing of data, and resolving any mapping or field type issues that may be causing discrepancies in data retrieval.

---

<div class="post-metadata">

**Author:** ![Kathleen\_DeRusso](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kathleen_derusso/32/132039_2.png) [@Kathleen\_DeRusso](https://discuss.elastic.co/u/Kathleen_DeRusso)\
**Post date:** [August 22, 2024, 12:11pm UTC](https://discuss.elastic.co/t/text-to-keyword-fields-cant-find-index/365312/2 "2024-08-22T12:11:12Z")

</div>

Can you please share the mappings on your old and new indices, and the command you used to reindex? Also, can you please share what it is that you expect that you're not seeing - I assume it's the keyword field?

---

<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 19, 2024, 12:12pm UTC](https://discuss.elastic.co/t/text-to-keyword-fields-cant-find-index/365312/3 "2024-09-19T12:12:02Z")

</div>

Closed on September 19, 2024, 12:12pm UTC

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