# No search result (by field exluded from source) after update

**URL:** <https://discuss.elastic.co/t/no-search-result-by-field-exluded-from-source-after-update/352368>\
**Category:** Elastic Search\
**Tags:** elastic-app-search, elastic-site-search\
**Created:** [February 2, 2024, 7:43am UTC](https://discuss.elastic.co/t/no-search-result-by-field-exluded-from-source-after-update/352368 "2024-02-02T07:43:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey1983](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Sergey1983](https://discuss.elastic.co/u/Sergey1983)\
**Post date:** [February 2, 2024, 7:43am UTC](https://discuss.elastic.co/t/no-search-result-by-field-exluded-from-source-after-update/352368/1 "2024-02-02T07:43:56Z")

</div>

Hi everyone! I have some specific problem with search. There are a lot of product with name, prices (divided by warehouses), amount (divided by warehouses) and personal prices (divided by agreement). Because of huge amount of personal prices I added them to exclude from \_source. When I create index and search some product by personal price It works fine but if i change amount value using elastic update with refresh=true next search with exact same query can't find anything. If i recreate index search works fine again. Any idea how I can update data in index without breaking search?  
Mappings loks like this

```auto
"mappings": {
    "_source": {
      "excludes": [
        "personalPrice*",
      ]
    },
    "dynamic_templates": [
      {
        "price": {
          "path_match": "price.*",
          "mapping": {
            "type": "float"
          }
        }
      },
      {
        "amount": {
          "path_match": "amount.*",
          "mapping": {
            "type": "float"
          }
        }
      },
    ],
    "properties": {
      "name": {
        "type": "keyword"
      },
    }
  }

```

---

<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 1, 2024, 7:44am UTC](https://discuss.elastic.co/t/no-search-result-by-field-exluded-from-source-after-update/352368/2 "2024-03-01T07:44:21Z")

</div>

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