# Elasticsearch Suggestion Completes return incorrect number of suggestions

**URL:** <https://discuss.elastic.co/t/elasticsearch-suggestion-completes-return-incorrect-number-of-suggestions/214522>\
**Category:** Elasticsearch\
**Created:** [January 10, 2020, 4:03am UTC](https://discuss.elastic.co/t/elasticsearch-suggestion-completes-return-incorrect-number-of-suggestions/214522 "2020-01-10T04:03:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidbkemp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidbkemp/32/594_2.png) [@davidbkemp](https://discuss.elastic.co/u/davidbkemp)\
**Post date:** [January 10, 2020, 4:03am UTC](https://discuss.elastic.co/t/elasticsearch-suggestion-completes-return-incorrect-number-of-suggestions/214522/1 "2020-01-10T04:03:43Z")

</div>

We are using Elasticsearch version 6.7 and have implemented completion suggestion successfully without weights. We now want to add weights to suggestions and are encountering issues.  
When using completion suggester **without** setting weights, querying for a “size” of 6 returns 6 results

```
POST listings/_search
{
 "_source": "suggest",
 "suggest": {
  "aSuggest": {
   "prefix": "12 sta",
   "completion": {
    "field": "suggest",
    "size": 6,
    "contexts": {
     "status": "active"
    }
   }
  }
 }
}

```

But when weightings are added to the fields there are no longer 6 results returned.  
We can get six results if we increase the “size” to 11, but it’s unclear why.

It looks like this was reported more than two years ago for version 5.

> [@Completion suggester returning less number of results](https://discuss.elastic.co/t/completion-suggester-returning-less-number-of-results/92812):
>
> Elasticsearch version: 5.4.3 JVM version: 1.8 OS version: ubuntu 14.04 I created an index with the following mapping. "areadocument": { "properties": { "areaSuggests": { "type": "completion", "analyzer": "standard", "preserve\_separators": false, "preserve\_position\_increments": true, "max\_input\_length": 50, "contexts": [ …

But we are using Elasticsearch 6.7

---

<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:** [February 7, 2020, 4:03am UTC](https://discuss.elastic.co/t/elasticsearch-suggestion-completes-return-incorrect-number-of-suggestions/214522/2 "2020-02-07T04:03:45Z")

</div>

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