Ignored boosts

I'm using the custom filters score query but the boosts declared in the "terms" filters are being ignored. The only score that's not ignored is the "script" one in the "exists" filter. I reviewed the documentation many times in order to find the problem but I had no success.
This is the actual query:

{ 'from': 0, 'query': { 'custom_filters_score': { 'filters': [ { 'filter': { 'exists': { 'field': 'tweet_article_poster' } }, 'script': "doc['actual_rank'].value/5000.0 + 1.0" }, { 'boost': '1.3', 'filter': { 'terms': { 'entities.text': [ 'Google', 'Twitter', 'Obama', 'NFL' ] } } }, { 'boost': '1.3', 'filter': { 'terms': { 'category': [ 'Sports', 'Politics', 'Technology_Internet' ] } } }, { 'boost': '2', 'filter': { 'terms': { 'tweet_article_poster': [ 'JoeGumby1', 'BBCSport', 'EyeOnNFL', 'MadeOfWWEAndHTC' ] } } } ], 'query': { 'bool': { 'must': { 'range': { 'added': { 'from': '2013-10-27T00:00:00' } } }, 'must_not': { 'term': { 'show': 'false' } } } }, 'score_mode': 'multiply' } }, 'size': 20}

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Filters do not contribute to scoring by definition, and therefore, boosting
filter terms is meaningless.

Jörg

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Are you sure?
From http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-custom-filters-score-query.html:
A custom_filters_score query allows to execute a query, and if the hit
matches a provided filter (ordered), use either a boost or a script
associated with it to compute the score.

Date: Mon, 28 Oct 2013 15:25:31 +0100
Subject: Re: Ignored boosts
From: joergprante@gmail.com
To: elasticsearch@googlegroups.com

Filters do not contribute to scoring by definition, and therefore, boosting filter terms is meaningless.
Jörg

--

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.

For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Can you use function score query and see if the issue stil persists?
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html

Jörg

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

I'm using the 0.90.0 version, the function score was added in 0.90.4 one.

Can you use function score query and see if the issue stil persists? http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html

Jörg

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Update: I lowercased the values included in the terms lists and now the boosts are applied to the results.

From: rod0n@live.com.ar
To: elasticsearch@googlegroups.com
Subject: RE: Ignored boosts
Date: Mon, 28 Oct 2013 12:00:55 -0300

I'm using the 0.90.0 version, the function score was added in 0.90.4 one.

Can you use function score query and see if the issue stil persists? http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html

Jörg

--

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.

For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.