# Elasticsearch stemmer issue

**URL:** <https://discuss.elastic.co/t/elasticsearch-stemmer-issue/17988>\
**Category:** Elasticsearch\
**Created:** [June 9, 2014, 6:32am UTC](https://discuss.elastic.co/t/elasticsearch-stemmer-issue/17988 "2014-06-09T06:32:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexshaman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexshaman/32/1497_2.png) [@alexshaman](https://discuss.elastic.co/u/alexshaman)\
**Post date:** [June 9, 2014, 6:32am UTC](https://discuss.elastic.co/t/elasticsearch-stemmer-issue/17988/1 "2014-06-09T06:32:38Z")

</div>

Hello everyone,

I have follow index mapping:

curl -XPUT 'http://localhost:9200/some\_content/' -d ' { "settings":{ "query\_string":{ "default\_con":"content", "default\_operator":"AND" }, "index":{ "analysis":{ "analyzer":{ "en\_analyser":{ "filter":["snowBallFilter"], "type":"custom", "tokenizer":"standard" } }, "filter":{ "en\_stopFilter":{ "type":"stop", "stopwords\_path":"lang/stopwords\_en.txt" }, "snowBallFilter":{ "type":"snowball", "language":"English" }, "wordDelimiterFilter":{ "catenate\_all":false, "catenate\_words":true, "catenate\_numbers":true, "generate\_word\_parts":true, "generate\_number\_parts":true, "preserve\_original":true, "type":"word\_delimiter", "split\_on\_case\_change":true }, "en\_synonymFilter":{ "synonyms\_path":"lang/synonyms\_en.txt", "ignore\_case":true, "type":"synonym", "expand":false }, "lengthFilter":{ "max":250, "type":"length", "min":3 } } } } }, "mappings":{ "docs":{ "\_source":{ "enabled":false }, "analyzer":"en\_analyser", "properties":{ "content":{ "type":"string", "index":"analyzed", "term\_vector":"with\_positions\_offsets", "omit\_norms":"true" } } } } }'

and I posted the next content:

curl -XPOST [http://localhost:9200/some\_content/docs/](http://localhost:9200/some_content/docs/) -d '  
{  
"content" : "Some sampling text formatted for text data"  
}'

When I make this one request:  
_[http://epbyvitw0052:9200/some\_content/docs/\_search?q=sampling](http://epbyvitw0052:9200/some_content/docs/_search?q=sampling)_

I'm getting result:  
  
{  
"took": 1,  
"timed\_out": false,  
"\_shards": {  
"total": 1,  
"successful": 1,  
"failed": 0  
},  
"hits": {  
"total": 1,  
"max\_score": 0.095891505,  
"hits": [  
{  
"\_index": "some\_content",  
"\_type": "docs",  
"\_id": "saLfx6PYR82YR69je0JbAA",  
"\_score": 0.095891505  
}  
]  
}  
}

but when I send request without type:  
_[http://epbyvitw0052:9200/some\_content/\_search?q=sampling](http://epbyvitw0052:9200/some_content/_search?q=sampling)_

then I'm getting nothing:  
  
{  
"took": 1,  
"timed\_out": false,  
"\_shards": {  
"total": 1,  
"successful": 1,  
"failed": 0  
},  
"hits": {  
"total": 0,  
"max\_score": null,  
"hits": []  
}  
}

although, I can make the next request with term:  
_[http://epbyvitw0052:9200/some\_content/\_search?q=sampl](http://epbyvitw0052:9200/some_content/_search?q=sampl)_

the system found it:  
  
{  
"took": 1,  
"timed\_out": false,  
"\_shards": {  
"total": 1,  
"successful": 1,  
"failed": 0  
},  
"hits": {  
"total": 1,  
"max\_score": 0.095891505,  
"hits": [  
{  
"\_index": "some\_content",  
"\_type": "docs",  
"\_id": "saLfx6PYR82YR69je0JbAA",  
"\_score": 0.095891505  
}  
]  
}  
}

It's issue appear when I put some stemmer into analyzer.  
Could you explain why the system has such behavior?  
May be I do something wrong.

--  
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/e311d613-4411-4b70-b800-05f6be9ad5cb%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e311d613-4411-4b70-b800-05f6be9ad5cb%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:23am UTC](https://discuss.elastic.co/t/elasticsearch-stemmer-issue/17988/2 "2017-07-06T01:23:51Z")

</div>


