# Scoring variable length documents

**URL:** <https://discuss.elastic.co/t/scoring-variable-length-documents/13774>\
**Category:** Elasticsearch\
**Created:** [September 26, 2013, 8:32pm UTC](https://discuss.elastic.co/t/scoring-variable-length-documents/13774 "2013-09-26T20:32:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![slushi](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@slushi](https://discuss.elastic.co/u/slushi)\
**Post date:** [September 26, 2013, 8:32pm UTC](https://discuss.elastic.co/t/scoring-variable-length-documents/13774/1 "2013-09-26T20:32:26Z")

</div>

I need to index documents with highly variable lengths. Some may just be a  
dozen words while others a few thousand. I am running into issues with  
scoring due to length norms. If I leave norms enabled, shorter documents  
get scored too highly. If I omit them, longer documents not as relevant are  
scored too highly. Is there a clever solution here? I was thinking of  
creating 2 separate fields ("short", "long") and omitNorms for the short  
field. Then at index time, put the text in one of the 2 fields based on  
it's length. It's not perfect by any means, so I was wondering if anyone  
else had any experience with this kind of situation.

--  
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).  
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:14am UTC](https://discuss.elastic.co/t/scoring-variable-length-documents/13774/2 "2017-07-06T02:14:31Z")

</div>


