Indice boosting when searching on multiple indices

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.

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

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

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 :slight_smile: "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 

Arghhh sorry ! By indice I meant type.

So indices_boost does not work on types, but only on indices. This one is
correct :slight_smile:

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.comwrote:

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 :slight_smile: "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
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.

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

Arghhh sorry ! By indice I meant type.

much clearer :slight_smile:

So indices_boost does not work on types, but only on indices. This one
is correct :slight_smile:

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