# Snowball analyzer not working

**URL:** https://discuss.elastic.co/t/snowball-analyzer-not-working/17549
**Category:** Elasticsearch
**Created:** [May 16, 2014, 10:47am UTC](https://discuss.elastic.co/t/snowball-analyzer-not-working/17549 "2014-05-16T10:47:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Kruti\_Shukla](https://avatars.discourse-cdn.com/v4/letter/k/45deac/32.png) [@Kruti\_Shukla](https://discuss.elastic.co/u/Kruti_Shukla)
#### Post date: [May 16, 2014, 10:47am UTC](https://discuss.elastic.co/t/snowball-analyzer-not-working/17549/1 "2014-05-16T10:47:55Z")

</div>

Hi All,  
I want to search document in following order --\>

1. men's foil shaver
2. men's foils shaver
3. men's foil advanced shaver

I tried multi-field option while mapping the field and mapped it with  
different filters and analyzers like one index with "not\_analyzed",one with  
"snow ball analyzer", one with "stemmer -- minimul english", "standard",  
whitespace" analyzer and one with ngram having min ngram 3 and max nagram  
10. None of them works for me.  
Major part of the problem is if I search for "men's foil shaver" then all  
of them have same score of I CANNOT re-sequence them.

I'm getting:

1. men's foil shaver
2. men's foil advanced shaver
3. men's foils shaver

expected result:

1. men's foil shaver
2. men's foils shaver -- zero word distance with 1 plural "foil --\> foils"
3. men's foil advanced shaver --1 word distance with no plural.

Please suggest. Any help?

I have posted kind of same question[https://groups.google.com/forum/#!topic/elasticsearch/ui9OR7JARs4](https://groups.google.com/forum/#!topic/elasticsearch/ui9OR7JARs4) before  
but I did not reach to answer. I'm still waiting on my answers for that.  
one more question I have posted before few weeks:  
[https://groups.google.com/forum/#!searchin/elasticsearch/plural/elasticsearch/ET-S3SCD22I/zFyErGO4SRcJ](https://groups.google.com/forum/#!searchin/elasticsearch/plural/elasticsearch/ET-S3SCD22I/zFyErGO4SRcJ)  
.  
Suggestion did improve my problem but it is not solved yet.

--  
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/fa97ad24-c5e1-40a4-9962-15b98bdcbe01%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fa97ad24-c5e1-40a4-9962-15b98bdcbe01%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Kruti\_Shukla](https://avatars.discourse-cdn.com/v4/letter/k/45deac/32.png) [@Kruti\_Shukla](https://discuss.elastic.co/u/Kruti_Shukla)
#### Post date: [May 19, 2014, 1:12pm UTC](https://discuss.elastic.co/t/snowball-analyzer-not-working/17549/2 "2014-05-19T13:12:28Z")

</div>

Is there anyone who can help? Please?

On Friday, May 16, 2014 6:47:55 AM UTC-4, Kruti Shukla wrote:

> Hi All,  
> I want to search document in following order --\>
> 
> 1. men's foil shaver
> 2. men's foils shaver
> 3. men's foil advanced shaver
> 
> I tried multi-field option while mapping the field and mapped it with  
> different filters and analyzers like one index with "not\_analyzed",one with  
> "snow ball analyzer", one with "stemmer -- minimul english", "standard",  
> whitespace" analyzer and one with ngram having min ngram 3 and max nagram  
> 10. None of them works for me.  
> Major part of the problem is if I search for "men's foil shaver" then all  
> of them have same score of I CANNOT re-sequence them.
> 
> I'm getting:
> 
> 1. men's foil shaver
> 2. men's foil advanced shaver
> 3. men's foils shaver
> 
> expected result:
> 
> 1. men's foil shaver
> 2. men's foils shaver -- zero word distance with 1 plural "foil --\> foils"
> 3. men's foil advanced shaver --1 word distance with no plural.
> 
> Please suggest. Any help?
> 
> I have posted kind of same question[https://groups.google.com/forum/#!topic/elasticsearch/ui9OR7JARs4](https://groups.google.com/forum/#!topic/elasticsearch/ui9OR7JARs4) before  
> but I did not reach to answer. I'm still waiting on my answers for that.  
> one more question I have posted before few weeks:  
> [Redirecting to Google Groups](https://groups.google.com/forum/#!searchin/elasticsearch/plural/elasticsearch/ET-S3SCD22I/zFyErGO4SRcJ)  
> .  
> Suggestion did improve my problem but it is not solved yet.

--  
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/ee9dc086-3443-4f32-aec8-63bb271d328c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ee9dc086-3443-4f32-aec8-63bb271d328c%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, 1:28am UTC](https://discuss.elastic.co/t/snowball-analyzer-not-working/17549/3 "2017-07-06T01:28:30Z")

</div>


