I need to perform a global search by free text. The documents, though, have a property “payload” which is an object type and its content is dynamic. This means that is not deterministic.
Is there a way to make a global search that basically treats the payload as a string? Sadly, changing the schema is not an option.
For example this document:
{
description: 'This is an example',
payload: {
random_property: 'Hello world'
}
}
has to be found by typing: ‘Hello’ or ‘random_property’ or ‘this is an example’.
