elasticsearch - How to filter _source before it is returned back from API? -
I have many fields in the indexed document _source . However I have to return the Search Search form Do not need to Now for every document, the complete
_source is returned to each
_source
How can I strengthen specific areas to achieve? In general, to answer your answer,
for the version & lt; 1
Usage (in the search request)
{"fields": ["the fields you want to receive"]} If the field contains the response, the source is not
if the version & gt; = 1 Then,
{"_source": ["field to include"]} can be found using source filtering is.
Hope it helps.
Comments
Post a Comment