# Autocomplete feature

**URL:** <https://discuss.elastic.co/t/autocomplete-feature/76385>\
**Category:** Elasticsearch\
**Created:** [February 24, 2017, 10:40am UTC](https://discuss.elastic.co/t/autocomplete-feature/76385 "2017-02-24T10:40:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JLVeiga](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jlveiga/32/55259_2.png) [@JLVeiga](https://discuss.elastic.co/u/JLVeiga)\
**Post date:** [February 24, 2017, 10:40am UTC](https://discuss.elastic.co/t/autocomplete-feature/76385/1 "2017-02-24T10:40:32Z")

</div>

Hello,

In elastic 2.4 I used the completion suggester for autocomplete the user search showing them the more relevant keywords for their search.

For example, If my old 2.4 index has 3 documents, 2 of them have the word "climate" in their suggest field and the other document has the word "clinical", when I write "cli" I get 1st "climate" and 2nd "clinical".

I'm upgrading to ES 5.2 and with this version when I use the completion suggester I get the suggested text and the full document (this is handy) but all the results have score 1.0. I understand that now the results are documents and all the documents have 1 match with the query but this breaks my feature.

How can I accomplish the old autocomplete feature with ES 5.2?

Thank you

---

<div class="post-metadata">

**Author:** ![ywelsch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ywelsch/32/7751_2.png) [@ywelsch](https://discuss.elastic.co/u/ywelsch)\
**Post date:** [February 24, 2017, 10:46am UTC](https://discuss.elastic.co/t/autocomplete-feature/76385/2 "2017-02-24T10:46:29Z")

</div>

This is discussed here as well: [https://github.com/elastic/elasticsearch/issues/22912](https://github.com/elastic/elasticsearch/issues/22912)

---

<div class="post-metadata">

**Author:** ![JLVeiga](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jlveiga/32/55259_2.png) [@JLVeiga](https://discuss.elastic.co/u/JLVeiga)\
**Post date:** [February 24, 2017, 10:53am UTC](https://discuss.elastic.co/t/autocomplete-feature/76385/3 "2017-02-24T10:53:05Z")

</div>

Thank you Yannick

---

<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:** [March 24, 2017, 10:53am UTC](https://discuss.elastic.co/t/autocomplete-feature/76385/4 "2017-03-24T10:53:07Z")

</div>

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