# Do a suggestion query on multi-fields of differents index

**URL:** <https://discuss.elastic.co/t/do-a-suggestion-query-on-multi-fields-of-differents-index/134438>\
**Category:** Elasticsearch\
**Created:** [June 4, 2018, 2:28pm UTC](https://discuss.elastic.co/t/do-a-suggestion-query-on-multi-fields-of-differents-index/134438 "2018-06-04T14:28:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akimbo](https://avatars.discourse-cdn.com/v4/letter/a/b77776/32.png) [@Akimbo](https://discuss.elastic.co/u/Akimbo)\
**Post date:** [June 4, 2018, 2:28pm UTC](https://discuss.elastic.co/t/do-a-suggestion-query-on-multi-fields-of-differents-index/134438/1 "2018-06-04T14:28:34Z")

</div>

Is it possible to do a suggestion query on multi-fields of differents index ? I want to do the query on the "content" field of one index and on the "message" field of another index.

I have tried it without success :

```auto
GET _search
{
  "suggest": {
    "text" : "build",
    "my-suggest-1" : {
      "term" : {
        "field" : "message"
      }
    },
    "my-suggest-2" : {
       "term" : {
        "field" : "content"
       }
    }
  }
}

```

---

<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 2, 2018, 2:28pm UTC](https://discuss.elastic.co/t/do-a-suggestion-query-on-multi-fields-of-differents-index/134438/2 "2018-07-02T14:28:35Z")

</div>

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