I'm struggling to find out the best way to filter out the response JSON from Elastic Search search query, I know two of them, they are as follows:
- filter_path: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/common-options.html#common-options-response-filtering
- _source: https://www.elastic.co/guide/en/elasticsearch/reference/current/run-a-search.html#source-filtering
I can't decide which one to use, what effect they'll be having on the query, performance, and other aspects.