# Completion Suggester Suggesting on Longer Words than Shorter Words

**URL:** <https://discuss.elastic.co/t/completion-suggester-suggesting-on-longer-words-than-shorter-words/68473>\
**Category:** Elasticsearch\
**Created:** [December 8, 2016, 7:23pm UTC](https://discuss.elastic.co/t/completion-suggester-suggesting-on-longer-words-than-shorter-words/68473 "2016-12-08T19:23:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Lee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_lee/32/12693_2.png) [@Daniel\_Lee](https://discuss.elastic.co/u/Daniel_Lee)\
**Post date:** [December 8, 2016, 7:23pm UTC](https://discuss.elastic.co/t/completion-suggester-suggesting-on-longer-words-than-shorter-words/68473/1 "2016-12-08T19:23:27Z")

</div>

I have a set of programming language terms that the completion suggester suggests on. When query term is "jav," the suggester should score "Java" as having a higher score than "Javascript." But that's not the case. Same situation applies for "CSS" score higher in suggestion than "C+" when query is C.

Is there a way to suggest on shorter length words first without manual weighting involved?

---

<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:** [January 5, 2017, 7:23pm UTC](https://discuss.elastic.co/t/completion-suggester-suggesting-on-longer-words-than-shorter-words/68473/2 "2017-01-05T19:23:31Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
