# Function score query & \_all field?

**URL:** <https://discuss.elastic.co/t/function-score-query--all-field/18312>\
**Category:** Elasticsearch\
**Created:** [June 25, 2014, 12:13am UTC](https://discuss.elastic.co/t/function-score-query--all-field/18312 "2014-06-25T00:13:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey\_Pilypenko](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@Sergey\_Pilypenko](https://discuss.elastic.co/u/Sergey_Pilypenko)\
**Post date:** [June 25, 2014, 12:13am UTC](https://discuss.elastic.co/t/function-score-query--all-field/18312/1 "2014-06-25T00:13:59Z")

</div>

Hi!

I notised that starting from 1.0.0rc1 \_boost option is deprecated. From doc  
I can't imagine how to use suggested solution (function score query) with  
\_all field which was taking in acount specific boosts from specific fields.  
Could somebody provide some small example for this case?

Thank you in advance,  
Sergii

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/f2be7fb7-2129-4b68-8e13-b1584112a60b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f2be7fb7-2129-4b68-8e13-b1584112a60b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Cedric\_Hourcade](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cedric_hourcade/32/1451_2.png) [@Cedric\_Hourcade](https://discuss.elastic.co/u/Cedric_Hourcade)\
**Post date:** [June 25, 2014, 6:07am UTC](https://discuss.elastic.co/t/function-score-query--all-field/18312/2 "2014-06-25T06:07:54Z")

</div>

Hello,

I think only the \_boost parameter is deprecated. You can still set a  
boost per field in your mapping.

Cédric Hourcade  
[ced@wal.fr](mailto:ced@wal.fr)

On Wed, Jun 25, 2014 at 2:13 AM, Sergey Pilypenko  
[s.pilypenko@nimble.com](mailto:s.pilypenko@nimble.com) wrote:

> Hi!
> 
> I notised that starting from 1.0.0rc1 \_boost option is deprecated. From doc  
> I can't imagine how to use suggested solution (function score query) with  
> \_all field which was taking in acount specific boosts from specific fields.  
> Could somebody provide some small example for this case?
> 
> Thank you in advance,  
> Sergii
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/f2be7fb7-2129-4b68-8e13-b1584112a60b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f2be7fb7-2129-4b68-8e13-b1584112a60b%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAJQxjPMeG2eqMxjimKAo7M2%2BCcw6wEVw3xTWGj1CUSZuJp%3DgDA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAJQxjPMeG2eqMxjimKAo7M2%2BCcw6wEVw3xTWGj1CUSZuJp%3DgDA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:19am UTC](https://discuss.elastic.co/t/function-score-query--all-field/18312/3 "2017-07-06T01:19:58Z")

</div>


