# ES7.5: Documents not searchable after update

**URL:** <https://discuss.elastic.co/t/es7-5-documents-not-searchable-after-update/217788>\
**Category:** Elasticsearch\
**Created:** [February 4, 2020, 11:31am UTC](https://discuss.elastic.co/t/es7-5-documents-not-searchable-after-update/217788 "2020-02-04T11:31:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sls89](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sls89/32/62007_2.png) [@sls89](https://discuss.elastic.co/u/sls89)\
**Post date:** [February 4, 2020, 11:31am UTC](https://discuss.elastic.co/t/es7-5-documents-not-searchable-after-update/217788/1 "2020-02-04T11:31:03Z")

</div>

Hi,

I have several documents in an index and try to update / create just one attribute (the attribute will be added and is not set by creating the document) therefore I tried both via \_update or \_update\_by\_query API.

The document will be updated but isn't visible to search afterwords.

The affected attribute is also defined as property on the mapping.

Search query:

curl "[http://127.0.0.1:9200/test/\_search](http://127.0.0.1:9200/test/_search)" --data-binary @search\_query.json

search\_query.json:

```
 {
   "from": 0,
   "size": 20,
   "query": {
 "bool": {
   "filter": [
     {
       "term": {
         "user": "test@example.com"
       }
     },
     {
       "term": {
         "set_up": false
       }
     },
     {
       "query_string": {
         "query": "(reversed* OR desrever*)",
         "default_field": "sample"
       }
     }
   ]
 }
   },
   "sort": {
 "ts": "desc"
   }
 }

```

The update request I issue:

curl -XPOST "[http://127.0.0.1:9200/test/\_doc/12345/\_update?refresh](http://127.0.0.1:9200/test/_doc/12345/_update?refresh)

```
 {
      "doc": {
           'value': 3244534
       }
  }

```

The search works as long as the documents are initially indexed but I've no clue why the documents aren't searchable anymore after updating.

Thanks in advance!

---

<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 4, 2020, 1:46pm UTC](https://discuss.elastic.co/t/es7-5-documents-not-searchable-after-update/217788/2 "2020-02-04T13:46:41Z")

</div>

Welcome!

What is the output of

```
GET /test/_doc/12345
```

---

<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, 2020, 1:46pm UTC](https://discuss.elastic.co/t/es7-5-documents-not-searchable-after-update/217788/3 "2020-03-03T13:46:42Z")

</div>

Closed on March 3, 2020, 1:46pm UTC

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