# Completion Suggester weight problem

**URL:** <https://discuss.elastic.co/t/completion-suggester-weight-problem/32338>\
**Category:** Elasticsearch\
**Created:** [October 16, 2015, 9:06am UTC](https://discuss.elastic.co/t/completion-suggester-weight-problem/32338 "2015-10-16T09:06:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gruzovator](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@gruzovator](https://discuss.elastic.co/u/gruzovator)\
**Post date:** [October 16, 2015, 9:06am UTC](https://discuss.elastic.co/t/completion-suggester-weight-problem/32338/1 "2015-10-16T09:06:52Z")

</div>

Hi,

I'm using ES 1.7.2. I've found that if weight field is \> 0x40000000 (MAX\_INT/2) resulting suggest score (and consequently suggests order) is unpredictable.  
May be there is an overflow somewhere in code.  
Also i've played with source code tests (e.g. testThatWeightCanBeAString from org.elasticsearch.search.suggest.CompletionSuggestSearchTests). Some of them failed when i use large weight values.

---

<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 5, 2017, 11:44pm UTC](https://discuss.elastic.co/t/completion-suggester-weight-problem/32338/2 "2017-07-05T23:44:24Z")

</div>


