# Field-length norm fails on fields with 3 and 4 words

**URL:** <https://discuss.elastic.co/t/field-length-norm-fails-on-fields-with-3-and-4-words/23500>\
**Category:** Elasticsearch\
**Created:** [April 30, 2015, 4:42pm UTC](https://discuss.elastic.co/t/field-length-norm-fails-on-fields-with-3-and-4-words/23500 "2015-04-30T16:42:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fil\_ES](https://avatars.discourse-cdn.com/v4/letter/f/65b543/32.png) [@Fil\_ES](https://discuss.elastic.co/u/Fil_ES)\
**Post date:** [April 30, 2015, 4:42pm UTC](https://discuss.elastic.co/t/field-length-norm-fails-on-fields-with-3-and-4-words/23500/1 "2015-04-30T16:42:42Z")

</div>

Hello,

I am experiencing an very annoying behaviour of the elastic search score  
calculating algorithm - the field length fails to find a difference between  
fields which contain 3 and 4 words. Always return same score for both.  
Example:

LANCA HOTEL EXTREME and MASSIVE AMAZING HOTEL GROUP

would come back with the same field length and set the same score for  
field-length norm.

I did try using BM25 similarity instead of default one manipulating  
parameters, however the output would be always the same.

Anybody got any idea why that would be happening? It is extremely annoying  
as most of fields in each document contain about 3-4 words.

Thank you,  
Fil

--  
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/a007c1fc-a5c4-45f5-9f83-7f414831170b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a007c1fc-a5c4-45f5-9f83-7f414831170b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [April 30, 2015, 8:54pm UTC](https://discuss.elastic.co/t/field-length-norm-fails-on-fields-with-3-and-4-words/23500/2 "2015-04-30T20:54:59Z")

</div>

The field norm is computed at index time and is stored in a single byte,  
which can lead to a loss in precision. This behavior might have changed  
with newer versions of Lucene, but probably not.

Ivan  
On Apr 30, 2015 6:42 PM, "Fil ES" [lisowski.filip91@gmail.com](mailto:lisowski.filip91@gmail.com) wrote:

> Hello,
> 
> I am experiencing an very annoying behaviour of the Elasticsearch score  
> calculating algorithm - the field length fails to find a difference between  
> fields which contain 3 and 4 words. Always return same score for both.  
> Example:
> 
> LANCA HOTEL EXTREME and MASSIVE AMAZING HOTEL GROUP
> 
> would come back with the same field length and set the same score for  
> field-length norm.
> 
> I did try using BM25 similarity instead of default one manipulating  
> parameters, however the output would be always the same.
> 
> Anybody got any idea why that would be happening? It is extremely annoying  
> as most of fields in each document contain about 3-4 words.
> 
> Thank you,  
> Fil
> 
> --  
> 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/a007c1fc-a5c4-45f5-9f83-7f414831170b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a007c1fc-a5c4-45f5-9f83-7f414831170b%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/a007c1fc-a5c4-45f5-9f83-7f414831170b%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a007c1fc-a5c4-45f5-9f83-7f414831170b%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CALY%3DcQA2qwW9RAJ9NM\_9kvWzfPkF7qxFHuLZaxGOphj%2BvjLA6A%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQA2qwW9RAJ9NM_9kvWzfPkF7qxFHuLZaxGOphj%2BvjLA6A%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:16am UTC](https://discuss.elastic.co/t/field-length-norm-fails-on-fields-with-3-and-4-words/23500/3 "2017-07-06T00:16:31Z")

</div>


