We have documents in the range 50k-100k. We are using the ElasticsearchOperations
interface of spring-data-elasticsearch and using NativeSearchQueryBuilder()
s withSourceFilter(new FetchSourceFilter(includeFields, excludeFields))
method to return only required fields. We wanted to know whether this source filtering have any performance impact? even if we are using simple elasticsearch query which returns all the records but having source filtering, will performance be affected? Or is it better to return all the fields? we have chosen to not to return all the fields as some of the fields can be larger in size i.e some of the fields can be list/array containing thousands of items.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.