# How to handle the source field inside of a URI search

**URL:** <https://discuss.elastic.co/t/how-to-handle-the-source-field-inside-of-a-uri-search/73906>\
**Category:** Elasticsearch\
**Created:** [February 3, 2017, 8:25pm UTC](https://discuss.elastic.co/t/how-to-handle-the-source-field-inside-of-a-uri-search/73906 "2017-02-03T20:25:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jclose](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@jclose](https://discuss.elastic.co/u/jclose)\
**Post date:** [February 3, 2017, 8:25pm UTC](https://discuss.elastic.co/t/how-to-handle-the-source-field-inside-of-a-uri-search/73906/1 "2017-02-03T20:25:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![polyfractal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/polyfractal/32/48162_2.png) [@polyfractal](https://discuss.elastic.co/u/polyfractal)\
**Post date:** [February 3, 2017, 8:35pm UTC](https://discuss.elastic.co/t/how-to-handle-the-source-field-inside-of-a-uri-search/73906/2 "2017-02-03T20:35:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 3, 2017, 8:36pm UTC](https://discuss.elastic.co/t/how-to-handle-the-source-field-inside-of-a-uri-search/73906/3 "2017-03-03T20:36:15Z")

</div>

Closed on March 3, 2017, 8:36pm UTC

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