# Unmapped types in Suggest

**URL:** <https://discuss.elastic.co/t/unmapped-types-in-suggest/317989>\
**Category:** Elasticsearch\
**Created:** [November 2, 2022, 1:38pm UTC](https://discuss.elastic.co/t/unmapped-types-in-suggest/317989 "2022-11-02T13:38:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![schawla](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@schawla](https://discuss.elastic.co/u/schawla)\
**Post date:** [November 2, 2022, 1:38pm UTC](https://discuss.elastic.co/t/unmapped-types-in-suggest/317989/1 "2022-11-02T13:38:56Z")

</div>

I am trying to implement suggest feature - [Suggesters | Elasticsearch Guide [8.5] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters.html) for handling misspelled words in my search implementation.

My search query is executed across multiple indices but while trying to use the suggest functionality , i am running into failures due to unmappaed fields.

Suppose i have an index named People which has a field - "name". Another index named news which has a field named - "title". My query was executed across both indices at the same time and search query had rules defined for both name and title fields. But while using suggest, i only want to return suggestions for name field in person index. As a result of this my news index is returning a failure that no mapping found for field name.

Is there a work- around in the suggest functionality via which i can specify an index name for the field OR how can i ignore unmapped fields and continue without returning any suggestions for misspelled words for that index.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 4, 2022, 1:37am UTC](https://discuss.elastic.co/t/unmapped-types-in-suggest/317989/2 "2022-11-04T01:37:32Z")

</div>

The only thing I can think of would be to use [`_msearch`](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html), and then discretely query the two indices in the one request.

---

<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:** [December 2, 2022, 1:38am UTC](https://discuss.elastic.co/t/unmapped-types-in-suggest/317989/3 "2022-12-02T01:38:15Z")

</div>

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