Is it possible to preprocess source?

i need to apply some filters to indexing document's field or just to source and get it filtered in query response. i know that transform is deprecated but even transfrom did not process source field. another option is to set stored field value but it also don't return field value after analyzer. Also even if i create my own plugin i can't change the source and return it. Is there any option to process document on elastic-side and return processed fields with regular query.

You want to format fields from source when you return them in a query?

i want to filter them, for example apply html_strip

You cannot do that, that is not what _source is for. You should be doing that to fields instead.

ok, then how can i return processed fields? OFC i can use "fielddata_fields" or script but not with get api or _mget