Understanding how to use the indexed _boost field

I'm trying to use the _boost field to boost certain documents while
indexing (as even native scripting is a bit slow for me ;)). But when
I'm searching with a query_string query the _boost field is not
recognized (documents with a lot higher _boost field come later).

Which query type recognizes the _boost field?

Regards,
Peter.

It works, but for queries : it does not. I opened an issue for
this:

But maybe the workaround is too easy (in my case) and this issue not
worth to be implemented ...

On Jun 9, 10:34 pm, Karussell tableyourt...@googlemail.com wrote:

I'm trying to use the _boost field to boost certain documents while
indexing (as even native scripting is a bit slow for me ;)). But when
I'm searching with a query_string query the _boost field is not
recognized (documents with a lot higher _boost field come later).

Which query type recognizes the _boost field?

Regards,
Peter.

Yes, by default, the : query is using a cached "constant" score result to improve perf. We can add a flag to it to have it do the fully term scanning, which will take boost into account, but it will be slower.

On Saturday, June 11, 2011 at 12:56 AM, Karussell wrote:

It works, but for queries : it does not. I opened an issue for
this:

_boost field should work for *:* too · Issue #1019 · elastic/elasticsearch · GitHub

But maybe the workaround is too easy (in my case) and this issue not
worth to be implemented ...

On Jun 9, 10:34 pm, Karussell <tableyourt...@googlemail.com (http://googlemail.com)> wrote:

I'm trying to use the _boost field to boost certain documents while
indexing (as even native scripting is a bit slow for me ;)). But when
I'm searching with a query_string query the _boost field is not
recognized (documents with a lot higher _boost field come later).

Which query type recognizes the _boost field?

Regards,
Peter.

I’m trying to understand the below discussion. Can someone help me explain what a : query is?

From: Shay Banon [mailto:shay.banon@elasticsearch.com]
Sent: zondag 12 juni 2011 9:18
To: users@elasticsearch.com
Subject: Re: Understanding how to use the indexed _boost field

Yes, by default, the : query is using a cached "constant" score result to improve perf. We can add a flag to it to have it do the fully term scanning, which will take boost into account, but it will be slower.

On Saturday, June 11, 2011 at 12:56 AM, Karussell wrote:

It works, but for queries : it does not. I opened an issue for
this:

But maybe the workaround is too easy (in my case) and this issue not
worth to be implemented ...

On Jun 9, 10:34 pm, Karussell tableyourt...@googlemail.com wrote:

I'm trying to use the _boost field to boost certain documents while
indexing (as even native scripting is a bit slow for me ;)). But when
I'm searching with a query_string query the _boost field is not
recognized (documents with a lot higher _boost field come later).

Which query type recognizes the _boost field?

Regards,
Peter.

Its a "match_all" query.

On Wednesday, June 15, 2011 at 2:01 PM, Yannick Smits wrote:

I’m trying to understand the below discussion. Can someone help me explain what a : query is?

From: Shay Banon [mailto:shay.banon@elasticsearch.com]
Sent: zondag 12 juni 2011 9:18
To: users@elasticsearch.com (mailto:users@elasticsearch.com)
Subject: Re: Understanding how to use the indexed _boost field

Yes, by default, the : query is using a cached "constant" score result to improve perf. We can add a flag to it to have it do the fully term scanning, which will take boost into account, but it will be slower.
On Saturday, June 11, 2011 at 12:56 AM, Karussell wrote:

It works, but for queries : it does not. I opened an issue for
this:

_boost field should work for *:* too · Issue #1019 · elastic/elasticsearch · GitHub

But maybe the workaround is too easy (in my case) and this issue not
worth to be implemented ...

On Jun 9, 10:34 pm, Karussell <tableyourt...@googlemail.com (http://googlemail.com)> wrote:

I'm trying to use the _boost field to boost certain documents while
indexing (as even native scripting is a bit slow for me ;)). But when
I'm searching with a query_string query the _boost field is not
recognized (documents with a lot higher _boost field come later).

Which query type recognizes the _boost field?

Regards,
Peter.