# Match, multi\_match and boosting fields

**URL:** <https://discuss.elastic.co/t/match-multi-match-and-boosting-fields/9601>\
**Category:** Elasticsearch\
**Created:** [November 7, 2012, 3:48pm UTC](https://discuss.elastic.co/t/match-multi-match-and-boosting-fields/9601 "2012-11-07T15:48:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benoit](https://avatars.discourse-cdn.com/v4/letter/b/5daacb/32.png) [@Benoit](https://discuss.elastic.co/u/Benoit)\
**Post date:** [November 7, 2012, 3:48pm UTC](https://discuss.elastic.co/t/match-multi-match-and-boosting-fields/9601/1 "2012-11-07T15:48:24Z")

</div>

Hi all,

I've seen on this message  
[https://groups.google.com/d/msg/elasticsearch/HESISfuupyc/wQJGiPJeZOcJ](https://groups.google.com/d/msg/elasticsearch/HESISfuupyc/wQJGiPJeZOcJ) that  
multi\_match field parameter support to boost field with a syntax like  
QueryString : field^2

It's pretty useful, but the match query does not support this notation.

Following doesn't work :

{  
"match" : {  
"message^2" : "this is a test"  
}  
}

The easiest solution is to use multi\_match query even if I know that I search only one field ... is there any drawback with this solution ?

Regards.

Benoît

--

---

<div class="post-metadata">

**Author:** ![Benoit](https://avatars.discourse-cdn.com/v4/letter/b/5daacb/32.png) [@Benoit](https://discuss.elastic.co/u/Benoit)\
**Post date:** [November 7, 2012, 5:09pm UTC](https://discuss.elastic.co/t/match-multi-match-and-boosting-fields/9601/2 "2012-11-07T17:09:36Z")

</div>

Answering partially to myself, this gist  
[relevance.sh · GitHub](https://gist.github.com/b62f45dcf28a5c030e67) mentionned in another thread  
show boost parameter in match query.

Benoît

On Wednesday, November 7, 2012 4:48:24 PM UTC+1, Benoît wrote:

> Hi all,
> 
> I've seen on this message  
> [https://groups.google.com/d/msg/elasticsearch/HESISfuupyc/wQJGiPJeZOcJthat](https://groups.google.com/d/msg/elasticsearch/HESISfuupyc/wQJGiPJeZOcJthat) multi\_match field parameter support to boost field with a syntax like  
> QueryString : field^2
> 
> It's pretty useful, but the match query does not support this notation.
> 
> Following doesn't work :
> 
> {  
> "match" : {  
> "message^2" : "this is a test"  
> }  
> }
> 
> The easiest solution is to use multi\_match query even if I know that I search only one field ... is there any drawback with this solution ?
> 
> Regards.
> 
> Benoît

--

---

<div class="post-metadata">

**Author:** ![mvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mvg/32/98890_2.png) [@mvg](https://discuss.elastic.co/u/mvg)\
**Post date:** [November 8, 2012, 2:03pm UTC](https://discuss.elastic.co/t/match-multi-match-and-boosting-fields/9601/3 "2012-11-08T14:03:08Z")

</div>

All queries support the `boost` parameter in the query dsl to boost  
individual queries.

Martijn

On 7 November 2012 18:09, Benoît [benoit.intrw@gmail.com](mailto:benoit.intrw@gmail.com) wrote:

> Answering partially to myself, this gist  
> [relevance.sh · GitHub](https://gist.github.com/b62f45dcf28a5c030e67) mentionned in another thread  
> show boost parameter in match query.
> 
> Benoît
> 
> On Wednesday, November 7, 2012 4:48:24 PM UTC+1, Benoît wrote:
> 
> > Hi all,
> > 
> > I've seen on this message  
> > [https://groups.google.com/d/msg/elasticsearch/HESISfuupyc/wQJGiPJeZOcJ](https://groups.google.com/d/msg/elasticsearch/HESISfuupyc/wQJGiPJeZOcJ) that  
> > multi\_match field parameter support to boost field with a syntax like  
> > QueryString : field^2
> > 
> > It's pretty useful, but the match query does not support this notation.
> > 
> > Following doesn't work :
> > 
> > {  
> > "match" : {  
> > "message^2" : "this is a test"  
> > }  
> > }
> > 
> > The easiest solution is to use multi\_match query even if I know that I  
> > search only one field ... is there any drawback with this solution ?
> > 
> > Regards.
> > 
> > Benoît
> 
> --

--  
Met vriendelijke groet,

Martijn van Groningen

--

---

<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:** [July 6, 2017, 3:05am UTC](https://discuss.elastic.co/t/match-multi-match-and-boosting-fields/9601/4 "2017-07-06T03:05:22Z")

</div>


