Text to Keyword fields - cant find index

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.

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?

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