Alternative to Source Fields

Hi all,
I have been thinking about a different approach for source field.
Instead of single source field why can't we store each fields as stored field individually
So that we can avoid JSON parsing time. As loading of single large field vs multiple small fields doesn't matter I think it will be faster

Am I missing anything

You can do that but as soon as you disable _source you won't be able to benefit from some features like the _reindex API.


If I write reindex based on stored fields in the documents similar to source, will it be better than _source field?
What is the performance gain of storing it as single source field?

I don't know. You want to do this. So you have to test it.
I'm unsure there is a performance gain TBH but share your findings if any.

1 Like

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