Mapping issue

Hi, I'm working with fields and changes.from in Elasticsearch. These fields sometimes hold simple strings, and other times, they are objects with various values like address, name, etc.
I'm facing an error: "failed to parse field [changes.from] of type [text] ". This happens when the field is mapped as text . However, if I map it as an object , I encounter problems when and changes.from contain just a simple keyword.
Can anyone suggest a solution for handling these fields ? Maybe we can write some painless script ? Or what would be the best solution ?

Hi @VirusProtect,

What do you mean by handle the fields? To confirm, for the object case is it a single level object or nested:

{ name: 'Bruce', surname: 'Banner', ... }

Versus a single string case:

"Bruce Banner"

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