# Text not stemmed after inserted in the index with language specific analyzer

**URL:** <https://discuss.elastic.co/t/text-not-stemmed-after-inserted-in-the-index-with-language-specific-analyzer/288645>\
**Category:** Elasticsearch\
**Created:** [November 8, 2021, 2:52pm UTC](https://discuss.elastic.co/t/text-not-stemmed-after-inserted-in-the-index-with-language-specific-analyzer/288645 "2021-11-08T14:52:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![makons](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/makons/32/74314_2.png) [@makons](https://discuss.elastic.co/u/makons)\
**Post date:** [November 8, 2021, 2:52pm UTC](https://discuss.elastic.co/t/text-not-stemmed-after-inserted-in-the-index-with-language-specific-analyzer/288645/1 "2021-11-08T14:52:12Z")

</div>

I have 2 fields in my index, one containing the standardly analyzed content, while the other one uses a `german` analyzer. However, when I insert documents, they don't seem to be stemmed at all, even though they should be by the language-specific analyzer. I've created a minimal example that doesn't work for me:

Create an index:

```auto
PUT test-index
{
    "settings": {
        "index": {
            "mapping": {
                "total_fields": {
                    "limit": 1500
                }
            }
        },
        "number_of_shards": 1,
        "number_of_replicas": 0,
        "refresh_interval": "1s"
    },
    "mappings": {
        "_source": {
            "enabled": true
        },
        "dynamic_templates": [
            {
                "default_string": {
                    "match": "*",
                    "match_mapping_type": "string",
                    "mapping": {
                        "type": "keyword",
                        "index": true,
                        "store": false
                    }
                }
            }
        ],
        "properties": {
            "standard_content": {
                "type": "text",
                "index": true,
                "analyzer": "standard",
                "search_analyzer": "standard"
            },
            "stemmed_content": {
                "type": "text",
                "index": true,
                "analyzer": "german",
                "search_analyzer": "german"
            }
        }
    },
    "aliases": {}
}

```

Add a document:

```auto
POST test-index/_doc/test-doc
{
    "standard_content": "Das Wort Orangen sollte nach dem Stemming zu Orange werden.",
    "stemmed_content": "Das Wort Orangen sollte nach dem Stemming zu Orange werden."
}

```

Essentially, per test the word "Orangen" should be stemmed to "Orange", "sollte" to "soll", and so on. However, the result when I run a `match_all` query is identical as inserted.

I had a similar setup already working for stemming/preprocessing language-specific content, but for some reason, it doesn't work now, and I don't understand why. Hopefully, someone can see where I'm making a mistake. Thanks!

---

<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 6, 2021, 2:52pm UTC](https://discuss.elastic.co/t/text-not-stemmed-after-inserted-in-the-index-with-language-specific-analyzer/288645/2 "2021-12-06T14:52:15Z")

</div>

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