# Combine Context Suggester with multiple weight inputs

**URL:** <https://discuss.elastic.co/t/combine-context-suggester-with-multiple-weight-inputs/118606>\
**Category:** Elasticsearch\
**Created:** [February 6, 2018, 10:09am UTC](https://discuss.elastic.co/t/combine-context-suggester-with-multiple-weight-inputs/118606 "2018-02-06T10:09:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JanSp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jansp/32/27409_2.png) [@JanSp](https://discuss.elastic.co/u/JanSp)\
**Post date:** [February 6, 2018, 10:09am UTC](https://discuss.elastic.co/t/combine-context-suggester-with-multiple-weight-inputs/118606/1 "2018-02-06T10:09:54Z")

</div>

Hey guys,

elsatic version 6.1

i want to combine the context suggestor with multiple inputs like this example

```
PUT place/doc/3
{
    "suggest": [
          {
              "input": "Berlin",
              "weight": 10
          },
          {
              "input": "123 Berlin",
              "weight": 3
          }],
          "contexts": {
              "countryCode": ["DE"],
              "featureCode": ["PPL"] 
          }
}

```

this will not work. only if i have a single input line like

PUT place/doc/2  
{  
"suggest": {  
"input": ["berlin", "123 berlin"],  
"contexts": {  
"countryCode": ["AT"],  
"featureCode": ["PPL"]  
}  
}  
}

is it possible to make the suggest working with context and multipe input fields && weights ?

---

<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 6, 2018, 10:10am UTC](https://discuss.elastic.co/t/combine-context-suggester-with-multiple-weight-inputs/118606/2 "2018-03-06T10:10:08Z")

</div>

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