How to handle the source field inside of a URI search

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.

I think it's a URL encoding issue actually. Try using %40 instead of @ ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.