# Kibana maps type - search\_as\_you\_type as unknown in the index pattern

**URL:** <https://discuss.elastic.co/t/kibana-maps-type-search-as-you-type-as-unknown-in-the-index-pattern/271399>\
**Category:** Kibana\
**Created:** [April 27, 2021, 2:49pm UTC](https://discuss.elastic.co/t/kibana-maps-type-search-as-you-type-as-unknown-in-the-index-pattern/271399 "2021-04-27T14:49:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cvljayawardana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cvljayawardana/32/81051_2.png) [@cvljayawardana](https://discuss.elastic.co/u/cvljayawardana)\
**Post date:** [April 27, 2021, 2:49pm UTC](https://discuss.elastic.co/t/kibana-maps-type-search-as-you-type-as-unknown-in-the-index-pattern/271399/1 "2021-04-27T14:49:09Z")

</div>

I am using elasticsearch/kibana - 7.9.8 and I am trying create a suggestions API using search\_as\_you\_type data type. However, when I add the mapping to the index with certain fields as `search_as_you_type` kibana index pattern identified those fields as 'unknown' as shown in the below picture which I think end up kibana not being able to discover the indexed documents using an index pattern.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/9/b9160e95c562fb813fdbce60167fd19829c8af6b.png)

Is there a way to properly add the date types into kibana index pattern ?

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [April 27, 2021, 3:02pm UTC](https://discuss.elastic.co/t/kibana-maps-type-search-as-you-type-as-unknown-in-the-index-pattern/271399/2 "2021-04-27T15:02:15Z")

</div>

Right now Kibana doesn't have support for `search_as_you_type`. Depending on what you want to do exactly, to work with the values in Kibana you could index them as another field type along with the `search_as_you_type` type (keyword and/or text make the most sense).

Check out the description here for how to set up your index: [fields | Elasticsearch Guide [7.12] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html#multi-fields)

---

<div class="post-metadata">

**Author:** ![cvljayawardana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cvljayawardana/32/81051_2.png) [@cvljayawardana](https://discuss.elastic.co/u/cvljayawardana)\
**Post date:** [April 27, 2021, 3:43pm UTC](https://discuss.elastic.co/t/kibana-maps-type-search-as-you-type-as-unknown-in-the-index-pattern/271399/3 "2021-04-27T15:43:56Z")

</div>

Thank you for the quick response @flash1293 🙂

---

<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:** [May 25, 2021, 3:44pm UTC](https://discuss.elastic.co/t/kibana-maps-type-search-as-you-type-as-unknown-in-the-index-pattern/271399/4 "2021-05-25T15:44:27Z")

</div>

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