# Indice boosting when searching on multiple indices

**URL:** <https://discuss.elastic.co/t/indice-boosting-when-searching-on-multiple-indices/8479>\
**Category:** Elasticsearch\
**Created:** [July 20, 2012, 2:40pm UTC](https://discuss.elastic.co/t/indice-boosting-when-searching-on-multiple-indices/8479 "2012-07-20T14:40:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alheim](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@alheim](https://discuss.elastic.co/u/alheim)\
**Post date:** [July 20, 2012, 2:40pm UTC](https://discuss.elastic.co/t/indice-boosting-when-searching-on-multiple-indices/8479/1 "2012-07-20T14:40:01Z")

</div>

Hello,

I have a query searching on multiple indices owned by the same index.  
I would like to give boost factors to the indices by using indices\_boost.

Boost is not considered. It works if I boost the index.

Thanks.

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [July 20, 2012, 5:29pm UTC](https://discuss.elastic.co/t/indice-boosting-when-searching-on-multiple-indices/8479/2 "2012-07-20T17:29:28Z")

</div>

On Fri, 2012-07-20 at 16:40 +0200, Alexandre Heimburger wrote:

> Hello,
> 
> I have a query searching on multiple indices owned by the same index.

Multiple indices owned by the same index?

> I would like to give boost factors to the indices by  
> using indices\_boost.
> 
> Boost is not considered. It works if I boost the index.

I'm afraid I don't understand what you're asking. I suggest providing a  
curl example of what you mean

clint

---

<div class="post-metadata">

**Author:** ![alheim](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@alheim](https://discuss.elastic.co/u/alheim)\
**Post date:** [July 23, 2012, 8:35am UTC](https://discuss.elastic.co/t/indice-boosting-when-searching-on-multiple-indices/8479/3 "2012-07-23T08:35:11Z")

</div>

Sorry for not being clear. In a few words, indices\_boost on indices  
belonging to the same index does not work.

It works only if you boost an index instead of an indice.

Clearer ?

On Friday, July 20, 2012 7:29:28 PM UTC+2, Clinton Gormley wrote:

> On Fri, 2012-07-20 at 16:40 +0200, Alexandre Heimburger wrote:
> 
> > Hello,
> > 
> > I have a query searching on multiple indices owned by the same index.
> 
> Multiple indices owned by the same index?
> 
> > I would like to give boost factors to the indices by  
> > using indices\_boost.
> > 
> > Boost is not considered. It works if I boost the index.
> 
> I'm afraid I don't understand what you're asking. I suggest providing a  
> curl example of what you mean
> 
> clint

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [July 23, 2012, 9:22am UTC](https://discuss.elastic.co/t/indice-boosting-when-searching-on-multiple-indices/8479/4 "2012-07-23T09:22:24Z")

</div>

On Mon, 2012-07-23 at 01:35 -0700, Alexandre Heimburger wrote:

> Sorry for not being clear. In a few words, indices\_boost on indices  
> belonging to the same index does not work.

> It works only if you boost an index instead of an indice.

> Clearer ?

Unfortunately, no 🙂 "indices" is the plural of "index", ie they are  
the same thing. What "things" do you mean by index and indice?

clint

> On Friday, July 20, 2012 7:29:28 PM UTC+2, Clinton Gormley wrote:  
> On Fri, 2012-07-20 at 16:40 +0200, Alexandre Heimburger  
> wrote:  
> \> Hello,  
> \>  
> \>  
> \> I have a query searching on multiple indices owned by the  
> same index.
> 
> ```
> Multiple indices owned by the same index? 
>     
> > I would like to give boost factors to the indices by 
> > using indices_boost. 
> > 
> > 
> > Boost is not considered. It works if I boost the index. 
>     
> I'm afraid I don't understand what you're asking. I suggest
> providing a 
> curl example of what you mean 
>     
> clint 
> 
> ```

---

<div class="post-metadata">

**Author:** ![alheim](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@alheim](https://discuss.elastic.co/u/alheim)\
**Post date:** [July 24, 2012, 2:37pm UTC](https://discuss.elastic.co/t/indice-boosting-when-searching-on-multiple-indices/8479/5 "2012-07-24T14:37:45Z")

</div>

Arghhh sorry ! By indice I meant type.

So indices\_boost does not work on types, but only on indices. This one is  
correct 🙂

So question is : is it possible to boost a type when searching multi types ?

On Mon, Jul 23, 2012 at 11:22 AM, Clinton Gormley [clint@traveljury.com](mailto:clint@traveljury.com)wrote:

> On Mon, 2012-07-23 at 01:35 -0700, Alexandre Heimburger wrote:
> 
> > Sorry for not being clear. In a few words, indices\_boost on indices  
> > belonging to the same index does not work.
> 
> > It works only if you boost an index instead of an indice.
> 
> > Clearer ?
> 
> Unfortunately, no 🙂 "indices" is the plural of "index", ie they are  
> the same thing. What "things" do you mean by index and indice?
> 
> clint
> 
> > On Friday, July 20, 2012 7:29:28 PM UTC+2, Clinton Gormley wrote:  
> > On Fri, 2012-07-20 at 16:40 +0200, Alexandre Heimburger  
> > wrote:  
> > \> Hello,  
> > \>  
> > \>  
> > \> I have a query searching on multiple indices owned by the  
> > same index.
> > 
> > ```
> > Multiple indices owned by the same index?
> > 
> > > I would like to give boost factors to the indices by
> > > using indices_boost.
> > >
> > >
> > > Boost is not considered. It works if I boost the index.
> > 
> > I'm afraid I don't understand what you're asking. I suggest
> > providing a
> > curl example of what you mean
> > 
> > clint
> > 
> > ```

## -- Alexandre Heimburger VP Engineering blueKiwi Software tel : +33687880997 email : [ahb@bluekiwi-software.com](mailto:ahb@bluekiwi-software.com) adress : 93 rue Vieille du Temple, 75003 Paris

blueKiwi is the innovation leader in Enterprise Social Software. Our  
solutions enable enterprises worldwide to engage and interact with their  
internal and external social networks in multiple business domains.  
blueKiwi has been consistently recognized by Gartner Inc. as a visionary  
provider since 2007.

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [July 24, 2012, 3:38pm UTC](https://discuss.elastic.co/t/indice-boosting-when-searching-on-multiple-indices/8479/6 "2012-07-24T15:38:43Z")

</div>

On Tue, 2012-07-24 at 16:37 +0200, Alexandre Heimburger wrote:

> Arghhh sorry ! By indice I meant type.

much clearer 🙂

> So indices\_boost does not work on types, but only on indices. This one  
> is correct 🙂
> 
> So question is : is it possible to boost a type when searching multi  
> types ?

Yes: you can do, eg:

"query" : {  
"bool" : {  
"should" : [  
{  
"term" : {  
"\_type" : {  
"boost" : 10,  
"value" : "type\_one"  
}  
}  
},  
{  
"term" : {  
"\_type" : "type\_two"  
}  
}  
]  
}  
},

clint

---

<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:19am UTC](https://discuss.elastic.co/t/indice-boosting-when-searching-on-multiple-indices/8479/7 "2017-07-06T03:19:16Z")

</div>


