# Boosts not reflected in score when searching \_all

**URL:** <https://discuss.elastic.co/t/boosts-not-reflected-in-score-when-searching--all/14939>\
**Category:** Elasticsearch\
**Created:** [December 18, 2013, 8:10pm UTC](https://discuss.elastic.co/t/boosts-not-reflected-in-score-when-searching--all/14939 "2013-12-18T20:10:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdamP](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@AdamP](https://discuss.elastic.co/u/AdamP)\
**Post date:** [December 18, 2013, 8:10pm UTC](https://discuss.elastic.co/t/boosts-not-reflected-in-score-when-searching--all/14939/1 "2013-12-18T20:10:14Z")

</div>

Hi,

I'm trying to search the \_all field and I'm finding that the field boosts  
aren't reflected in the score each document receives.

According to the Elasticsearch documentation:  
"One of the nice features of the \_all field is that it takes into account  
specific fields boost levels. Meaning that if a title field is boosted more  
than content, the title (part) in the \_all field will mean more than the  
content (part) in the \_all field."

When I do a query, I'm getting the same score for each document, regardless  
of the boost. This seems to have something to do with my custom analyzers.  
If I use the standard analyzer, the boost works correctly.

Here's my mapping, data, and query. I'm searching for the word "test".  
Since field1 has a large boost, the document containing the word "test" in  
field1 should have a higher score right?

> <https://gist.github.com/anonymous/8011821>

Thanks

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d6e430e9-ceae-49ff-8d48-b621ffb513cc%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d6e430e9-ceae-49ff-8d48-b621ffb513cc%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![brian\_yoder](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@brian\_yoder](https://discuss.elastic.co/u/brian_yoder)\
**Post date:** [December 18, 2013, 8:50pm UTC](https://discuss.elastic.co/t/boosts-not-reflected-in-score-when-searching--all/14939/2 "2013-12-18T20:50:08Z")

</div>

For one thing, I am not sure about the reason for using different analyzers  
for indexing as for searching. I always use the same analyzer for both.

I've also only seen the \_all field enabled via: "\_all" : {"enabled" : true} and  
never with any analyzers of its own.

Not sure if this helps; I hope it does.

Regards,  
Brian

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3cf011de-6bf3-4e28-ba2e-f280d592574a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3cf011de-6bf3-4e28-ba2e-f280d592574a%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 19, 2013, 2:56pm UTC](https://discuss.elastic.co/t/boosts-not-reflected-in-score-when-searching--all/14939/3 "2013-12-19T14:56:04Z")

</div>

Hey,

can you test with elasticsearch 0.90.8? There was bug fixed recently about  
a similar issue: [Per-field boosting of the \_all field is broken unless very specific conditions are met · Issue #4315 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/4315)

--Alex

On Wed, Dec 18, 2013 at 9:50 PM, InquiringMind [brian.from.fl@gmail.com](mailto:brian.from.fl@gmail.com)wrote:

> For one thing, I am not sure about the reason for using different  
> analyzers for indexing as for searching. I always use the same analyzer for  
> both.
> 
> I've also only seen the \_all field enabled via: "\_all" : {"enabled" : true  
> } and never with any analyzers of its own.
> 
> Not sure if this helps; I hope it does.
> 
> Regards,  
> Brian
> 
> --  
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/3cf011de-6bf3-4e28-ba2e-f280d592574a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3cf011de-6bf3-4e28-ba2e-f280d592574a%40googlegroups.com)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGCwEM8R7WbCqpfQ9Bp2BLpHZgJN2crayV9BFt8iaR%2BbR%3DqHjg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM8R7WbCqpfQ9Bp2BLpHZgJN2crayV9BFt8iaR%2BbR%3DqHjg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![AdamP](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@AdamP](https://discuss.elastic.co/u/AdamP)\
**Post date:** [December 19, 2013, 3:15pm UTC](https://discuss.elastic.co/t/boosts-not-reflected-in-score-when-searching--all/14939/4 "2013-12-19T15:15:52Z")

</div>

That was the issue.

Thanks!

On Thursday, December 19, 2013 9:56:04 AM UTC-5, Alexander Reelsen wrote:

> Hey,
> 
> can you test with elasticsearch 0.90.8? There was bug fixed recently about  
> a similar issue:  
> [Per-field boosting of the \_all field is broken unless very specific conditions are met · Issue #4315 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/4315)
> 
> --Alex
> 
> On Wed, Dec 18, 2013 at 9:50 PM, InquiringMind \<[brian....@gmail.com](mailto:brian....@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > For one thing, I am not sure about the reason for using different  
> > analyzers for indexing as for searching. I always use the same analyzer for  
> > both.
> > 
> > I've also only seen the \_all field enabled via: "\_all" : {"enabled" :  
> > true} and never with any analyzers of its own.
> > 
> > Not sure if this helps; I hope it does.
> > 
> > Regards,  
> > Brian
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/3cf011de-6bf3-4e28-ba2e-f280d592574a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3cf011de-6bf3-4e28-ba2e-f280d592574a%40googlegroups.com)  
> > .
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/5a118321-ffda-4266-af6b-8884b18715af%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5a118321-ffda-4266-af6b-8884b18715af%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:00am UTC](https://discuss.elastic.co/t/boosts-not-reflected-in-score-when-searching--all/14939/5 "2017-07-06T02:00:13Z")

</div>


