# Update boost value in index mapping is not taking effect

**URL:** <https://discuss.elastic.co/t/update-boost-value-in-index-mapping-is-not-taking-effect/274158>\
**Category:** Elasticsearch\
**Created:** [May 27, 2021, 8:14am UTC](https://discuss.elastic.co/t/update-boost-value-in-index-mapping-is-not-taking-effect/274158 "2021-05-27T08:14:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anand\_Bhagwat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anand_bhagwat/32/89324_2.png) [@Anand\_Bhagwat](https://discuss.elastic.co/u/Anand_Bhagwat)\
**Post date:** [May 27, 2021, 8:14am UTC](https://discuss.elastic.co/t/update-boost-value-in-index-mapping-is-not-taking-effect/274158/1 "2021-05-27T08:14:11Z")

</div>

Hi,  
I have index configuration mapping file which I am using to create an index. The mapping contains dynamic mappings with boost value in it. Json snippet is given below:

```auto
    "mappings": {
        "dynamic_templates": [
          {
            "strings_title": {
              "match_mapping_type": "*",
    		  "match": "*_t",
              "mapping": {
                "type": "text",
                "analyzer" : "regular",
                "boost" : 4
              }
            }
          }
      ]
    }

```

The boosted values works fine when I create entries and perform a search.

Now when I update the above mapping by updating the boost value to let say "boost":10 , it does not have any effect when i again search.  
I did a GET\_mapping and can see the mapping is updated with new boost value but it does not getting reflected in scores.

I also called \_close, \_open, \_refresh on index but still no effect. It still uses the old boost value.  
Can someone suggest what I am missing here and how I can update the boost value?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [May 31, 2021, 7:54am UTC](https://discuss.elastic.co/t/update-boost-value-in-index-mapping-is-not-taking-effect/274158/2 "2021-05-31T07:54:34Z")

</div>

These dynamic templates are only applied when a new field gets added to the mapping, but not too existing fields or when a search is executed.

---

<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 28, 2021, 7:54am UTC](https://discuss.elastic.co/t/update-boost-value-in-index-mapping-is-not-taking-effect/274158/3 "2021-06-28T07:54:39Z")

</div>

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