# Scoring over integer values

**URL:** <https://discuss.elastic.co/t/scoring-over-integer-values/21603>\
**Category:** Elasticsearch\
**Created:** [January 13, 2015, 11:51am UTC](https://discuss.elastic.co/t/scoring-over-integer-values/21603 "2015-01-13T11:51:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joao\_Ascenso](https://avatars.discourse-cdn.com/v4/letter/j/bc79bd/32.png) [@Joao\_Ascenso](https://discuss.elastic.co/u/Joao_Ascenso)\
**Post date:** [January 13, 2015, 11:51am UTC](https://discuss.elastic.co/t/scoring-over-integer-values/21603/1 "2015-01-13T11:51:49Z")

</div>

Greetings,

I'm currently trying to do scoring over counts of events, and the way I  
imagined was document scoring based on integer proximity in the fields.

ex: a document where fieldA = 400 would score higher agains a document with  
fieldA=450 than one with fieldA\>500 or \<400.

Looking at TF/IDF I would assume the integers are handled as tokens and  
that proximity in the range is not taken into account when scoring. Am I  
correct to assume this and, if so, is there any way to effeciently score  
based on number only?

Thanks

--

_NOTICE AND DISCLAIMER_

This email (including attachments) is confidential. If you are not the  
intended recipient, notify the sender immediately, delete this email from  
your system and do not disclose or use for any purpose.

Business Address: 1 Bath Street, London, EC1V 9LB.  
Registered Office: Finsgate, 5-7 Cranwood Street, London, EC1V 9EE  
Big Data Partnership Limited is a company registered in England & Wales  
with Company No 7904824

--  
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/4b7f22cc-1ec0-42b4-9ced-29fdfa1dec90%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/4b7f22cc-1ec0-42b4-9ced-29fdfa1dec90%40googlegroups.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:39am UTC](https://discuss.elastic.co/t/scoring-over-integer-values/21603/2 "2017-07-06T00:39:24Z")

</div>

Closed on July 6, 2017, 12:39am UTC


