# Field is not getting always

**URL:** <https://discuss.elastic.co/t/field-is-not-getting-always/144929>\
**Category:** Elasticsearch\
**Created:** [August 17, 2018, 4:02pm UTC](https://discuss.elastic.co/t/field-is-not-getting-always/144929 "2018-08-17T16:02:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bob28](https://avatars.discourse-cdn.com/v4/letter/b/8e8cbc/32.png) [@bob28](https://discuss.elastic.co/u/bob28)\
**Post date:** [August 17, 2018, 4:02pm UTC](https://discuss.elastic.co/t/field-is-not-getting-always/144929/1 "2018-08-17T16:02:21Z")

</div>

Hi,

I am querying elasticsearch thruogh spark job and I am seeing some wired situation.

I have added one field recently to the elasticsearch and when I query throguh kibana, I am able to see that field and its values.

But when I am querying through Spark scala code/job, I am not getting this field always. Sometimes I am getting it and sometimes I am not getting this field in the search results.

Could you please help me why this is behaving like this and what I need to do to make sure that I am getting this field always when I query the elasticsearch.

I really appreciate your help and thanks in advance

Thanks,  
Bob

---

<div class="post-metadata">

**Author:** ![bob28](https://avatars.discourse-cdn.com/v4/letter/b/8e8cbc/32.png) [@bob28](https://discuss.elastic.co/u/bob28)\
**Post date:** [August 19, 2018, 5:16am UTC](https://discuss.elastic.co/t/field-is-not-getting-always/144929/2 "2018-08-19T05:16:21Z")

</div>

Hi, Anyone can respond on the above question?

I am new to es and I am reiterating my questions again: I have added new field to index in elasticsearch. When I try to read documents in this index, I am not seeing new field which I have added sometimes and sometimes it is reading. I am trying to read thru spark job.

Could you please provide any suggestions why it is behaving like this?

Thanks,  
Bob

---

<div class="post-metadata">

**Author:** ![ShaneP](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@ShaneP](https://discuss.elastic.co/u/ShaneP)\
**Post date:** [August 19, 2018, 5:33am UTC](https://discuss.elastic.co/t/field-is-not-getting-always/144929/3 "2018-08-19T05:33:08Z")

</div>

I am [having](https://gimp.software/) this same [issue](http://www.icloudcentral.com/). I created a thread and due to no reply for a [month](https://googleclassroom.onl/) it got removed automatically. Lets see what happens here.

---

<div class="post-metadata">

**Author:** ![bob28](https://avatars.discourse-cdn.com/v4/letter/b/8e8cbc/32.png) [@bob28](https://discuss.elastic.co/u/bob28)\
**Post date:** [August 20, 2018, 4:24pm UTC](https://discuss.elastic.co/t/field-is-not-getting-always/144929/4 "2018-08-20T16:24:03Z")

</div>

Are you still facing this issue or some how you bypassed?

Looks like no one is responding and this issue is irritating.. and not getting any clue..

Thanks,  
Bob

---

<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:** [September 17, 2018, 4:24pm UTC](https://discuss.elastic.co/t/field-is-not-getting-always/144929/5 "2018-09-17T16:24:10Z")

</div>

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