I have been working on a good scale production system, where I have indexed large volume of data to elastic search. Then I need to search with specific queries. While doing so, I am having some performance related queries.
Please consider this as a follow up question of this
Since I used to return the nested data using inner hits, from the documentation using _source is not a best solution if we have large set of nested objects to return. So how can we overcome this? Can we use doc value fields? If yes how?
Read that by default inner hits size defaults to size 3, so we can provide a max of 100. Suppose if we need to return all the results, how can we fetch data without affecting the performance?