This error message indicates that there is an issue with the mapping of the Elasticsearch index. The “business” field was originally mapped as a “keyword” type, which cannot be changed to a “text” type.
The reason for this limitation is that “keyword” fields are stored in an optimized manner for exact matching, while “text” fields are analyzed and broken down into individual terms for full-text search. Changing the type of a field from “keyword” to “text” would require reindexing all the data in the index, which can be a time-consuming and resource-intensive process.
To resolve this issue, you may need to either create a new index with the correct mapping or adjust the mapping of the existing index to accommodate the desired data type for the “business” field. Note that changing the mapping of an existing index can also cause data loss if the new mapping does not match the existing data. Therefore, it is recommended to test any changes on a smaller set of data before applying them to the entire index.