# Stemming

**URL:** https://discuss.elastic.co/t/stemming/20689
**Category:** Elasticsearch
**Created:** [November 11, 2014, 1:55pm UTC](https://discuss.elastic.co/t/stemming/20689 "2014-11-11T13:55:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Linus\_Pettersson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/linus_pettersson/32/1107_2.png) [@Linus\_Pettersson](https://discuss.elastic.co/u/Linus_Pettersson)
#### Post date: [November 11, 2014, 1:55pm UTC](https://discuss.elastic.co/t/stemming/20689/1 "2014-11-11T13:55:47Z")

</div>

Hello

I'm trying to use Swedish stemming in elasticsearch and I keep getting  
problem with it. I could need some advice about how to deal with this stuff.

The main problem is that the stemmers stems some words in a weird way which  
makes my hits either go through the roof or not match at all.  
At first I used the "Swedish" snowball filter but it seemed to stem a bit  
"too hard".

Example:  
Original =\> Stemmed  
"ledare" =\> "led"  
"ledig" =\> "led"  
"ledighet" =\> "led"  
"ledighetens" =\> "led"

None of these words should really be stemmed to "led". So, I changed to the  
"light\_swedish" filter instead. It seems to be a bit more conservative with  
its stemming which I like:

Original =\> Stemmed  
"ledare" =\> "led"  
"ledig" =\> "ledig"  
"ledighet" =\> "ledig"  
"ledighetens" =\> "ledig"

But, with other words it does a not so good job:

Original =\> Stemmed  
"förmån" =\> "förma"  
"förmåner" =\> "förmån"  
"förmånen" =\> "förmån"  
...

All of these should be stemmed to "förmån".

I get that the stemmers are not perfect, but how can I make the best of it?  
How do you handle things like this?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/960d182d-f212-4a94-9b7c-bac36644829d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/960d182d-f212-4a94-9b7c-bac36644829d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Ramy](https://avatars.discourse-cdn.com/v4/letter/r/8491ac/32.png) [@Ramy](https://discuss.elastic.co/u/Ramy)
#### Post date: [November 12, 2014, 11:08am UTC](https://discuss.elastic.co/t/stemming/20689/2 "2014-11-12T11:08:38Z")

</div>

Maybe this would help you:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

in the example they use only "swedish"

Am Dienstag, 11. November 2014 14:55:47 UTC+1 schrieb Linus Pettersson:

> Hello
> 
> I'm trying to use Swedish stemming in elasticsearch and I keep getting  
> problem with it. I could need some advice about how to deal with this stuff.
> 
> The main problem is that the stemmers stems some words in a weird way  
> which makes my hits either go through the roof or not match at all.  
> At first I used the "Swedish" snowball filter but it seemed to stem a bit  
> "too hard".
> 
> Example:  
> Original =\> Stemmed  
> "ledare" =\> "led"  
> "ledig" =\> "led"  
> "ledighet" =\> "led"  
> "ledighetens" =\> "led"
> 
> None of these words should really be stemmed to "led". So, I changed to  
> the "light\_swedish" filter instead. It seems to be a bit more conservative  
> with its stemming which I like:
> 
> Original =\> Stemmed  
> "ledare" =\> "led"  
> "ledig" =\> "ledig"  
> "ledighet" =\> "ledig"  
> "ledighetens" =\> "ledig"
> 
> But, with other words it does a not so good job:
> 
> Original =\> Stemmed  
> "förmån" =\> "förma"  
> "förmåner" =\> "förmån"  
> "förmånen" =\> "förmån"  
> ...
> 
> All of these should be stemmed to "förmån".
> 
> I get that the stemmers are not perfect, but how can I make the best of it?  
> How do you handle things like this?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/dc28b176-938a-4e76-95f6-c0c0e9ba32a8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dc28b176-938a-4e76-95f6-c0c0e9ba32a8%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:50am UTC](https://discuss.elastic.co/t/stemming/20689/3 "2017-07-06T00:50:32Z")

</div>


