# Implement stemmer on search-as-you-type field

**URL:** <https://discuss.elastic.co/t/implement-stemmer-on-search-as-you-type-field/270656>\
**Category:** Elasticsearch\
**Created:** [April 20, 2021, 6:21am UTC](https://discuss.elastic.co/t/implement-stemmer-on-search-as-you-type-field/270656 "2021-04-20T06:21:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sb8244](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sb8244/32/87376_2.png) [@sb8244](https://discuss.elastic.co/u/sb8244)\
**Post date:** [April 20, 2021, 6:21am UTC](https://discuss.elastic.co/t/implement-stemmer-on-search-as-you-type-field/270656/1 "2021-04-20T06:21:34Z")

</div>

Is it possible to easily add an additional sub-field under search-as-you-type (SAYT) to use a stemmer analyzer? Ideally, I want to keep the normal SAYT without a stemmer analyzer, and then have a single stemmed field that is brought into the multi query.

I tried to do something like this:

```auto
content: %{
          type: "search_as_you_type",
          fields: %{
            _stem: %{
              type: "text",
              analyzer: "standard_stemmer"
            }
          }
        },

```

ES took the mapping creation just fine, but the field isn't present when I try to analyze it:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/2/42d8a47381d22a9099cbe375da1767978f4e18a6.png) vs  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/4/14f836c9813a0ce25dbbb5b97fd15b76b91be7b4.png)

---

<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 18, 2021, 6:21am UTC](https://discuss.elastic.co/t/implement-stemmer-on-search-as-you-type-field/270656/2 "2021-05-18T06:21:40Z")

</div>

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