Refresh Field List

Some times we fail to see any data in kibana for some indices but once i refresh the fields on that particular index it starts to show the data again , do i need to change the field types in this case or I am missing something here , please do let me know if any faced this issue in the past :

Error during index fail to pull any data from hot node to show on kibana :
Caused by: java.lang.IllegalArgumentException: Fielddata is disabled on text fields by default. Set fielddata=true on [child.child.child.child.child.child.child.child.child.child.details.message.text] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.
at org.elasticsearch.index.mapper.TextFieldMapper$TextFieldType.fielddataBuilder( ~[elasticsearch-7.1.0.jar:7.1.0]
at org.elasticsearch.index.fielddata.IndexFieldDataService.getForField( ~[elasticsearch-7.1.0.jar:7.1.0]
at org.elasticsearch.index.query.QueryShardContext.getForField( ~[elasticsearch-7.1.0.jar:7.1.0]
at ~[elasticsearch-7.1.0.jar:7.1.0]
at ~[elasticsearch-7.1.0.jar:7.1.0]
at ~[elasticsearch-7.1.0.jar:7.1.0]
at$executeFetchPhase$3( ~[elasticsearch-7.1.0.jar:7.1.0]
at$3.doRun( ~[elasticsearch-7.1.0.jar:7.1.0]
at ~[elasticsearch-7.1.0.jar:7.1.0]
at org.elasticsearch.common.util.concurrent.TimedRunnable.doRun( ~[elasticsearch-7.1.0.jar:7.1.0]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun( ~[elasticsearch-7.1.0.jar:7.1.0]