# ElasticSearch URL request, can't access to an object and his variable

**URL:** <https://discuss.elastic.co/t/elasticsearch-url-request-cant-access-to-an-object-and-his-variable/121211>\
**Category:** Elasticsearch\
**Created:** [February 23, 2018, 12:58pm UTC](https://discuss.elastic.co/t/elasticsearch-url-request-cant-access-to-an-object-and-his-variable/121211 "2018-02-23T12:58:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DiSiZ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/disiz/32/60095_2.png) [@DiSiZ](https://discuss.elastic.co/u/DiSiZ)\
**Post date:** [February 23, 2018, 12:58pm UTC](https://discuss.elastic.co/t/elasticsearch-url-request-cant-access-to-an-object-and-his-variable/121211/1 "2018-02-23T12:58:18Z")

</div>

Here's my problem, I have got a JSON flow coming on ElasticSearch which has this kind of form :

 ![Json_Example](https://us1.discourse-cdn.com/elastic/original/3X/3/3/338dc28625937b32c4af56fcebf3d5995e60db73.PNG)

And I'd like to do a request like this for example:

/.../\_search?q=lat: ["48" TO "49"]

This work with every member in \_source expect the lat;lon in Start and End, but nothing to do, I just don't know how to access End and Start variable

For example if I want to get all JSON object in a specified date i do this request: /\_search?q=timestamp: ["2018-02-23T09:05:30" TO "2018-02-23T09:07:30"] For a 2 minute time laps.

I tried thing like : /.../\_search?q=end.lat: ["48" TO "49"] etc..

Sorry if my english is bad, and also I'm new on JSON and elastic I've discovered it last week, for your information I do know Query DSL, I tried it I felt like URL request was easier to use.

Hope you've got some idea, if something isn't clear just tell me, thanks for your help

best regards,

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 23, 2018, 1:21pm UTC](https://discuss.elastic.co/t/elasticsearch-url-request-cant-access-to-an-object-and-his-variable/121211/2 "2018-02-23T13:21:45Z")

</div>

Bonjour 🙂

Please don't post images of text as they are hardly readable and not searchable.

Instead paste the text and format it with `</>` icon. Check the preview window.

Could you provide a full recreation script as described in [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

Also note that you have this forum in french as well if you are not confortable with english (but you look confortable IMO): #in-your-native-tongue:discussions-en-francais

---

<div class="post-metadata">

**Author:** ![DiSiZ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/disiz/32/60095_2.png) [@DiSiZ](https://discuss.elastic.co/u/DiSiZ)\
**Post date:** [February 23, 2018, 1:28pm UTC](https://discuss.elastic.co/t/elasticsearch-url-request-cant-access-to-an-object-and-his-variable/121211/3 "2018-02-23T13:28:11Z")

</div>

Thanks for your answer !😃  
I'll take care of what you said.  
Going to delete this post and put it in the french forum part, with some modification then.  
EDIT : If i found how to delete my post

Bye,

---

<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 23, 2018, 1:28pm UTC](https://discuss.elastic.co/t/elasticsearch-url-request-cant-access-to-an-object-and-his-variable/121211/4 "2018-03-23T13:28:37Z")

</div>

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