# Boosting components

**URL:** <https://discuss.elastic.co/t/boosting-components/6854>\
**Category:** Elasticsearch\
**Created:** [March 1, 2012, 2:24pm UTC](https://discuss.elastic.co/t/boosting-components/6854 "2012-03-01T14:24:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephane\_Tessier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephane_tessier/32/2975_2.png) [@Stephane\_Tessier](https://discuss.elastic.co/u/Stephane_Tessier)\
**Post date:** [March 1, 2012, 2:24pm UTC](https://discuss.elastic.co/t/boosting-components/6854/1 "2012-03-01T14:24:13Z")

</div>

Hi all,

I am using Elasticsearch with grails plugin.  
I tried to find out how boosting can be applied on components by  
elasticsearch, but did not manage to find an answer anywhere...

My question is :  
I want to boost a component\*. Should i apply the boost factor on the  
component itself (declared inside the root type), or should i boost  
the fields of the component, or both ?  
If both, do the boost factors multiply ?

Thanks in advance,

Stephane.

- What i call component is a type inside a root type.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 3, 2012, 9:34pm UTC](https://discuss.elastic.co/t/boosting-components/6854/2 "2012-03-03T21:34:34Z")

</div>

I am not really sure what you mean by component, what do you mean by type inside root type? You mean another field in the doc? You can use some of the Query DSL options to boost data, it feels like the custom\_filters\_score would fit here: [http://www.elasticsearch.org/guide/reference/query-dsl/custom-filters-score-query.html](http://www.elasticsearch.org/guide/reference/query-dsl/custom-filters-score-query.html).

On Thursday, March 1, 2012 at 4:24 PM, Stéphane Tessier wrote:

> Hi all,
> 
> I am using Elasticsearch with grails plugin.  
> I tried to find out how boosting can be applied on components by  
> elasticsearch, but did not manage to find an answer anywhere...
> 
> My question is :  
> I want to boost a component\*. Should i apply the boost factor on the  
> component itself (declared inside the root type), or should i boost  
> the fields of the component, or both ?  
> If both, do the boost factors multiply ?
> 
> Thanks in advance,
> 
> Stephane.
> 
> - What i call component is a type inside a root type.

---

<div class="post-metadata">

**Author:** ![Stephane\_Tessier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephane_tessier/32/2975_2.png) [@Stephane\_Tessier](https://discuss.elastic.co/u/Stephane_Tessier)\
**Post date:** [March 5, 2012, 11:45am UTC](https://discuss.elastic.co/t/boosting-components/6854/3 "2012-03-05T11:45:14Z")

</div>

If i boost a field of a boosted object which is inside a root object, are  
boost factors multiplied ?

I am more concerned about boost factors for indexing rather than searching.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 5, 2012, 3:29pm UTC](https://discuss.elastic.co/t/boosting-components/6854/4 "2012-03-05T15:29:26Z")

</div>

When you associate a boost value with a specific field for indexing, then that value will be used, its not multiplied. I do recommend using boosting when searching over indexing, as it gives you better flexibility to change it.

On Monday, March 5, 2012 at 1:45 PM, Stéphane Tessier wrote:

> If i boost a field of a boosted object which is inside a root object, are boost factors multiplied ?
> 
> I am more concerned about boost factors for indexing rather than searching.

---

<div class="post-metadata">

**Author:** ![Stephane\_Tessier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephane_tessier/32/2975_2.png) [@Stephane\_Tessier](https://discuss.elastic.co/u/Stephane_Tessier)\
**Post date:** [March 6, 2012, 9:02am UTC](https://discuss.elastic.co/t/boosting-components/6854/5 "2012-03-06T09:02:04Z")

</div>

I get it: the value applied on the component is for all its fields, and we  
can override the boosting of some particular fields if needed.

Thanks for your recommandations, but we have so many different types with  
so many different fields that the search request with a boost factor on  
each field would be too complicated 😕

---

<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:37am UTC](https://discuss.elastic.co/t/boosting-components/6854/6 "2017-07-06T03:37:12Z")

</div>


