# Predefined boost scores

**URL:** <https://discuss.elastic.co/t/predefined-boost-scores/226353>\
**Category:** Elasticsearch\
**Created:** [April 3, 2020, 7:43am UTC](https://discuss.elastic.co/t/predefined-boost-scores/226353 "2020-04-03T07:43:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Venkatram\_Akkineni](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/venkatram_akkineni/32/65329_2.png) [@Venkatram\_Akkineni](https://discuss.elastic.co/u/Venkatram_Akkineni)\
**Post date:** [April 3, 2020, 7:43am UTC](https://discuss.elastic.co/t/predefined-boost-scores/226353/1 "2020-04-03T07:43:10Z")

</div>

Hi

I found the documentation which says one should use boost queries to enable boosting. But is there a way to specify the boost scores inside the index so that the clients don't have to specify on each call ?

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [April 3, 2020, 1:37pm UTC](https://discuss.elastic.co/t/predefined-boost-scores/226353/2 "2020-04-03T13:37:29Z")

</div>

Hi, Venkatram.  
Check out the [script score](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-script-score-query.html) query to boost based on arbitrary properties of documents.

---

<div class="post-metadata">

**Author:** ![Venkatram\_Akkineni](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/venkatram_akkineni/32/65329_2.png) [@Venkatram\_Akkineni](https://discuss.elastic.co/u/Venkatram_Akkineni)\
**Post date:** [April 3, 2020, 2:36pm UTC](https://discuss.elastic.co/t/predefined-boost-scores/226353/3 "2020-04-03T14:36:36Z")

</div>

Hi Thankyou

I think this may be what I was looking for. I haven't tested it yet.

[https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-boost.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-boost.html)

---

<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:** [May 1, 2020, 2:36pm UTC](https://discuss.elastic.co/t/predefined-boost-scores/226353/4 "2020-05-01T14:36:41Z")

</div>

Closed on May 1, 2020, 2:36pm UTC

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