# Suggest without stemming

**URL:** <https://discuss.elastic.co/t/suggest-without-stemming/19176>\
**Category:** Elasticsearch\
**Created:** [August 9, 2014, 6:02pm UTC](https://discuss.elastic.co/t/suggest-without-stemming/19176 "2014-08-09T18:02:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_Tier](https://avatars.discourse-cdn.com/v4/letter/r/a88e57/32.png) [@Richard\_Tier](https://discuss.elastic.co/u/Richard_Tier)\
**Post date:** [August 9, 2014, 6:02pm UTC](https://discuss.elastic.co/t/suggest-without-stemming/19176/1 "2014-08-09T18:02:03Z")

</div>

I am getting suggestions that look like they have gone through a stem  
filter - e.g., I get "languag" (stem of language), "amaz" (stem of amazing).

How can I prevent this behaviour? Only suggesting full words would be  
desirable.

My settings and mappings looks like this:

'mappings': {  
'file': {  
'properties': {  
'description': {  
'type': 'multi\_field',  
'include\_in\_all': True,  
'fields': {  
'description': {  
'type': 'string'  
},  
'partial': {  
'type': 'string',  
'analyzer': 'partial'  
},  
'full': {  
'type': 'string',  
'analyzer': 'full'  
}  
}  
},  
}  
}  
},  
'settings': {  
'analysis': {  
'analyzer': {  
'full': {  
'filter': [  
'asciifolding',  
'filter\_shingle',  
'filter\_stemmer',  
'filter\_stop',  
'lowercase',  
'standard',  
],  
'type': 'custom',  
'tokenizer': 'standard'  
},  
'partial': {  
'filter': [  
'asciifolding',  
'filter\_ngrams',  
'filter\_stemmer',  
'lowercase',  
'standard',  
],  
'type': 'custom',  
'tokenizer': 'standard'  
}  
},  
'filter': {  
'filter\_ngrams': {  
'type': 'edgeNGram',  
'max\_gram': 5,  
'min\_gram': 1  
},  
'filter\_stop':{  
'type':'stop'  
},  
'filter\_shingle':{  
'type': 'shingle',  
'max\_shingle\_size': 5,  
'min\_shingle\_size': 2,  
'output\_unigrams': 'true'  
},  
'filter\_stemmer' : {  
'name': 'english',  
'type': 'stemmer'  
}  
}  
}  
}

my suggest query looks like:

```
    'description-suggestion': {
            'text' : term,
            'phrase' : {
                'field' : 'description',
                'direct_generator': [
                    {
                        'field' : 'description',
                        'suggest_mode' : 'popular'
                    }
                ]
            }
        }

```

--  
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/fb65b307-f03e-450b-902c-257ff054201c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fb65b307-f03e-450b-902c-257ff054201c%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Richard\_Tier](https://avatars.discourse-cdn.com/v4/letter/r/a88e57/32.png) [@Richard\_Tier](https://discuss.elastic.co/u/Richard_Tier)\
**Post date:** [August 9, 2014, 6:08pm UTC](https://discuss.elastic.co/t/suggest-without-stemming/19176/2 "2014-08-09T18:08:29Z")

</div>

Another indication that filters are in play with the suggestion is stop  
words are not included in the suggestions: when I search for text I know to  
be in the "description" field "a set of printable crds" I get suggestions  
including "set printabl card" - which seems to have stop words removed and  
has stemmed "printable".

--  
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/24ea19b7-9193-46b3-aac2-18ea0b9cc54b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/24ea19b7-9193-46b3-aac2-18ea0b9cc54b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Julien\_Ricard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julien_ricard/32/1268_2.png) [@Julien\_Ricard](https://discuss.elastic.co/u/Julien_Ricard)\
**Post date:** [September 16, 2014, 4:56pm UTC](https://discuss.elastic.co/t/suggest-without-stemming/19176/3 "2014-09-16T16:56:08Z")

</div>

Hello,

I have the exact same issue. I wonder how to get full strings instead of  
their stems which is not what I expect from a "suggest" query. Don't have  
any solution 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/fa0718ae-fcd4-473e-8341-45b973f0e0da%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fa0718ae-fcd4-473e-8341-45b973f0e0da%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:01am UTC](https://discuss.elastic.co/t/suggest-without-stemming/19176/4 "2017-07-06T01:01:54Z")

</div>


