# What is the difference between boost and weight

**URL:** <https://discuss.elastic.co/t/what-is-the-difference-between-boost-and-weight/284714>\
**Category:** Elasticsearch\
**Created:** [September 21, 2021, 11:52am UTC](https://discuss.elastic.co/t/what-is-the-difference-between-boost-and-weight/284714 "2021-09-21T11:52:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepti](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@Deepti](https://discuss.elastic.co/u/Deepti)\
**Post date:** [September 21, 2021, 11:52am UTC](https://discuss.elastic.co/t/what-is-the-difference-between-boost-and-weight/284714/1 "2021-09-21T11:52:25Z")

</div>

Boost parameter is used in the below example  
wildcard": {  
"City": {  
"wildcard": "_M_",  
"boost": 10  
}  
Can I use similar query for weight?

---

<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:** [September 21, 2021, 12:10pm UTC](https://discuss.elastic.co/t/what-is-the-difference-between-boost-and-weight/284714/2 "2021-09-21T12:10:13Z")

</div>

Where did you see `weight`?

---

<div class="post-metadata">

**Author:** ![Deepti](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@Deepti](https://discuss.elastic.co/u/Deepti)\
**Post date:** [September 21, 2021, 1:22pm UTC](https://discuss.elastic.co/t/what-is-the-difference-between-boost-and-weight/284714/3 "2021-09-21T13:22:28Z")

</div>

function\_score query

---

<div class="post-metadata">

**Author:** ![Deepti](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@Deepti](https://discuss.elastic.co/u/Deepti)\
**Post date:** [September 21, 2021, 1:25pm UTC](https://discuss.elastic.co/t/what-is-the-difference-between-boost-and-weight/284714/4 "2021-09-21T13:25:33Z")

</div>

What is the difference between apply ^ and using boost?  
Does these both refer to boost? Or is this below example of weight.  
{  
"query": {  
"multi\_match" : {  
"query": "London",  
"fields": ["City", " **AnotherCity^4**"]  
}

}

---

<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:** [September 21, 2021, 3:47pm UTC](https://discuss.elastic.co/t/what-is-the-difference-between-boost-and-weight/284714/5 "2021-09-21T15:47:32Z")

</div>

> [@Deepti](#):
>
> Does these both refer to boost?

Yes.

---

<div class="post-metadata">

**Author:** ![Deepti](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@Deepti](https://discuss.elastic.co/u/Deepti)\
**Post date:** [September 22, 2021, 1:54am UTC](https://discuss.elastic.co/t/what-is-the-difference-between-boost-and-weight/284714/6 "2021-09-22T01:54:08Z")

</div>

Thank you @dadoonet

---

<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:** [October 20, 2021, 1:54am UTC](https://discuss.elastic.co/t/what-is-the-difference-between-boost-and-weight/284714/7 "2021-10-20T01:54:31Z")

</div>

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