Elastic field include exclude performance

Is performance bad when applying include or exclude on a field? currently we apply top filter and then apply include or exclude on a field , in this situation is it going to affect the performance?

Including of excluding fields will mean the source document need to be parsed and altered, which is extra work. Exactly how much this affects performance will depend on the size and complexity of your documents as well as the number of documents returned in the query.

thanks for explaining !

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