Unable to get Source filter while doing elastic search with spring boot class org.elasticsearch.search.builder.SearchSourceBuilder

I edited your post. Just edit it again to see what I put to make it readable.

Could you try to change this line:

searchSourceBuilder.fetchSource(true).fetchSource((String[]) outParamList.toArray(arr),null);

to

searchSourceBuilder.fetchSource((String[]) outParamList.toArray(arr), null);