# Unable to view docs in dataview (w/timestamp field) after doc update

**URL:** <https://discuss.elastic.co/t/unable-to-view-docs-in-dataview-w-timestamp-field-after-doc-update/333189>\
**Category:** Kibana\
**Tags:** data-views\
**Created:** [May 11, 2023, 10:32am UTC](https://discuss.elastic.co/t/unable-to-view-docs-in-dataview-w-timestamp-field-after-doc-update/333189 "2023-05-11T10:32:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![petersedivec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/petersedivec/32/81934_2.png) [@petersedivec](https://discuss.elastic.co/u/petersedivec)\
**Post date:** [May 11, 2023, 10:32am UTC](https://discuss.elastic.co/t/unable-to-view-docs-in-dataview-w-timestamp-field-after-doc-update/333189/1 "2023-05-11T10:32:14Z")

</div>

I'm inserting docs to an index. There's a `created_at` field that I use in the dataview for time filtering. After initial doc inserts I can see all the docs in Kibana in my data view. I'm then needing to update docs so using the update API (from dev tools or elasticsearch-py) once I update a doc I no longer can find it in search for my dataview with time filtering. Here's what I'm trying

- my\_dataview - I've set this data view up with a timefilter using `created_at` field
- my\_dataview\_no\_filter - I've set this data view up with no timefilter

In Discover, I'm able to see see all the indexed records for both data views

Dev Tools

```auto
post my-index/_update/123
{
  "doc": {"name": "newfield"}
}

```

That is taken from the \_updateAPI docs page

If I then try to search for that document in Discover after doing an update I can find the doc using my\_dataview\_no\_filter but the doc is no where to be found when using my\_dataview

If I do a `get my-index/123` I get the updated doc back. The `created_at` field hasn't been changed.

What am I missing? Why can't I find the doc in my time filtered dataview? I'm so confused, please help

---

<div class="post-metadata">

**Author:** ![jughosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jughosta/32/107160_2.png) [@jughosta](https://discuss.elastic.co/u/jughosta)\
**Post date:** [May 11, 2023, 11:41am UTC](https://discuss.elastic.co/t/unable-to-view-docs-in-dataview-w-timestamp-field-after-doc-update/333189/2 "2023-05-11T11:41:25Z")

</div>

Hi @petersedivec,

It could be that the currently selected time range on Discover page (in the top nav) is excluding this document. Extending it might help.

---

<div class="post-metadata">

**Author:** ![petersedivec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/petersedivec/32/81934_2.png) [@petersedivec](https://discuss.elastic.co/u/petersedivec)\
**Post date:** [May 11, 2023, 2:21pm UTC](https://discuss.elastic.co/t/unable-to-view-docs-in-dataview-w-timestamp-field-after-doc-update/333189/3 "2023-05-11T14:21:38Z")

</div>

@jughosta - thanks for the thought, the doc is from May 11th and I've set it to past 30, 90 days and 1yr. I should have mentioned that already. I wish that's what it was

---

<div class="post-metadata">

**Author:** ![jughosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jughosta/32/107160_2.png) [@jughosta](https://discuss.elastic.co/u/jughosta)\
**Post date:** [May 11, 2023, 6:44pm UTC](https://discuss.elastic.co/t/unable-to-view-docs-in-dataview-w-timestamp-field-after-doc-update/333189/4 "2023-05-11T18:44:19Z")

</div>

Is it the same issue when searched for documents via Dev Tools?

---

<div class="post-metadata">

**Author:** ![petersedivec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/petersedivec/32/81934_2.png) [@petersedivec](https://discuss.elastic.co/u/petersedivec)\
**Post date:** [May 11, 2023, 7:42pm UTC](https://discuss.elastic.co/t/unable-to-view-docs-in-dataview-w-timestamp-field-after-doc-update/333189/5 "2023-05-11T19:42:06Z")

</div>

Haven't tried using the search api in we tools but will give that a try.

---

<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:** [June 8, 2023, 7:42pm UTC](https://discuss.elastic.co/t/unable-to-view-docs-in-dataview-w-timestamp-field-after-doc-update/333189/6 "2023-06-08T19:42:49Z")

</div>

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