For the life of me, I cannot figure out the proper syntax to pull out only the necessary fields when using a URI search.
For example, if I want to pull out the @timestamp and sensor_temp values out of a URI search, I want to do something like:
curl -XGET localhost:9200/my_index/_search?_source_include=@timestamp%2Csensor_temp%2Bsite1:USA%20%2Bcity:NYC
But this does not seem to be working correctly. The documentation for this option is not very thoroughly explained (at least not with examples), so any help would be appreciated.