# How to analyze an HTML text with compound words

**URL:** <https://discuss.elastic.co/t/how-to-analyze-an-html-text-with-compound-words/33514>\
**Category:** Elasticsearch\
**Created:** [November 2, 2015, 12:12pm UTC](https://discuss.elastic.co/t/how-to-analyze-an-html-text-with-compound-words/33514 "2015-11-02T12:12:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kralizek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kralizek/32/5641_2.png) [@kralizek](https://discuss.elastic.co/u/kralizek)\
**Post date:** [November 2, 2015, 12:12pm UTC](https://discuss.elastic.co/t/how-to-analyze-an-html-text-with-compound-words/33514/1 "2015-11-02T12:12:49Z")

</div>

I'm writing a search service based on Elasticsearch for a bunch of sites with content written in agglutinated languages like Swedish, German and Finnish.

I know that Elasticsearch offers language analyzers by default but after some testing I found their support sloppy at best.

What I got so far is:

```
{
  "settings":{
    "analysis":{
      "filter":{
        "swedish_stop":{
          "type": "stop",
          "stopwords": "_swedish_"
        },
        "swedish_stemmer":{
          "type":"stemmer",
          "language":"swedish"
        },
        "swedish_words":{
          "type":"dictionary_decompounder",
          "word_list":["very", "long", "list", "of", "words", "almost", "13", "MB"]
        }
      },
      "analyzer":{
        "custom_swedish":{
          "tokenizer": "standard",
          "filter":[
            "lowercase",
            "swedish_stop",
            "swedish_stemmer",
            "swedish_words"
          ],
          "char_filter":[
            "html_strip"
          ]
        }
      }
    }
  }
}

```

Do you guys have a clue?

---

<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 5, 2017, 11:41pm UTC](https://discuss.elastic.co/t/how-to-analyze-an-html-text-with-compound-words/33514/2 "2017-07-05T23:41:17Z")

</div>


