# Intermittent search querying issues

**URL:** <https://discuss.elastic.co/t/intermittent-search-querying-issues/259471>\
**Category:** Elasticsearch\
**Created:** [December 23, 2020, 10:31am UTC](https://discuss.elastic.co/t/intermittent-search-querying-issues/259471 "2020-12-23T10:31:28Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sajjan\_Kumar\_Jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sajjan_kumar_jain/32/81307_2.png) [@Sajjan\_Kumar\_Jain](https://discuss.elastic.co/u/Sajjan_Kumar_Jain)\
**Post date:** [December 23, 2020, 10:31am UTC](https://discuss.elastic.co/t/intermittent-search-querying-issues/259471/1 "2020-12-23T10:31:28Z")

</div>

Hi,

We are using elastic search in our backend hosted on AWS. And our backend is in Java. We have seen a pattern where queries start failing for a brief period of time with the following error:  
`cannot write time value xcontent for unknown value of type class java.util.Date`

This auto resolves itself after some time. But keeps happening every once in a while. Could you help me figure out what the issue is?

Cheers,  
Sajjan

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [December 23, 2020, 12:33pm UTC](https://discuss.elastic.co/t/intermittent-search-querying-issues/259471/2 "2020-12-23T12:33:24Z")

</div>

Are you using AWS Elasticsearch service or self hosting on AWS? Which version are you using? Is there anything relevant in the Elasticsearch logs?

---

<div class="post-metadata">

**Author:** ![Sajjan\_Kumar\_Jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sajjan_kumar_jain/32/81307_2.png) [@Sajjan\_Kumar\_Jain](https://discuss.elastic.co/u/Sajjan_Kumar_Jain)\
**Post date:** [December 23, 2020, 1:15pm UTC](https://discuss.elastic.co/t/intermittent-search-querying-issues/259471/3 "2020-12-23T13:15:02Z")

</div>

We are using AWS hosted Elastic Search java sdk version: 7.8.1.

The logs only have this xcontent error. Nothing relevant unfortunately. But the error seems to generally happen when we do a server deployment. So, could be some sort of an initialization issue?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [December 23, 2020, 1:18pm UTC](https://discuss.elastic.co/t/intermittent-search-querying-issues/259471/4 "2020-12-23T13:18:07Z")

</div>

If you are using AWS Elasticsearch it is hard to help as they are using a custom fork with custom plugins. I would recommend contacting AWS support.

---

<div class="post-metadata">

**Author:** ![Sajjan\_Kumar\_Jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sajjan_kumar_jain/32/81307_2.png) [@Sajjan\_Kumar\_Jain](https://discuss.elastic.co/u/Sajjan_Kumar_Jain)\
**Post date:** [December 23, 2020, 4:49pm UTC](https://discuss.elastic.co/t/intermittent-search-querying-issues/259471/5 "2020-12-23T16:49:32Z")

</div>

Hi Christian,

I just checked with my team. We don't infact use AWS elastic search because they don't support 7.8.1 version and we didn't want to go back. Sorry for the confusion! I really need help solving this!

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [December 23, 2020, 4:52pm UTC](https://discuss.elastic.co/t/intermittent-search-querying-issues/259471/6 "2020-12-23T16:52:43Z")

</div>

Then you should have access to the Elasticsearch logs. Is there anything relevant there around the times you have experienced these problems?

---

<div class="post-metadata">

**Author:** ![Sajjan\_Kumar\_Jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sajjan_kumar_jain/32/81307_2.png) [@Sajjan\_Kumar\_Jain](https://discuss.elastic.co/u/Sajjan_Kumar_Jain)\
**Post date:** [December 24, 2020, 7:03am UTC](https://discuss.elastic.co/t/intermittent-search-querying-issues/259471/7 "2020-12-24T07:03:06Z")

</div>

I haven't seen the exact logs printed around the time of the error. Will get the logs from elastic search for that time.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [December 24, 2020, 7:06am UTC](https://discuss.elastic.co/t/intermittent-search-querying-issues/259471/8 "2020-12-24T07:06:11Z")

</div>

Are you using any third-party plugins? Do you have any non-standard configuration?

---

<div class="post-metadata">

**Author:** ![Sajjan\_Kumar\_Jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sajjan_kumar_jain/32/81307_2.png) [@Sajjan\_Kumar\_Jain](https://discuss.elastic.co/u/Sajjan_Kumar_Jain)\
**Post date:** [December 24, 2020, 9:25am UTC](https://discuss.elastic.co/t/intermittent-search-querying-issues/259471/9 "2020-12-24T09:25:06Z")

</div>

No, we are not. I can't find any relevant logs around the same time when the error occurs in Elastic Search.  
I see an error n the ES logs but might be unrelated.

---

<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:** [January 21, 2021, 9:25am UTC](https://discuss.elastic.co/t/intermittent-search-querying-issues/259471/10 "2021-01-21T09:25:16Z")

</div>

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