How to use the unanalyzed field when its analyzed?

Hi everyone, I got into the same problem that is found here

The problem is, we already got our data indexed with "analyzed" option ,
Is there anyway we can revert the process / use the "unanalyzed" texts to get the aggregation we wanted?

Sorry for the basic question and thank you very much

You will need to alter mappings and reindex the data to make such a change.

1 Like

Thank you, Christian.

So that mean its impossible wihout the original data, right?

Unless you have disabled the _source field, you should be able to used the reindex API to reindex from your current index.

1 Like

Check either data.keyword is available in your index or not??? If you have
that you can directly use that.

1 Like

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