# Bulgarian stemming

**URL:** <https://discuss.elastic.co/t/bulgarian-stemming/265002>\
**Category:** Elasticsearch\
**Created:** [February 21, 2021, 7:58pm UTC](https://discuss.elastic.co/t/bulgarian-stemming/265002 "2021-02-21T19:58:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hristo\_Hristov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hristo_hristov/32/84268_2.png) [@Hristo\_Hristov](https://discuss.elastic.co/u/Hristo_Hristov)\
**Post date:** [February 21, 2021, 7:58pm UTC](https://discuss.elastic.co/t/bulgarian-stemming/265002/1 "2021-02-21T19:58:27Z")

</div>

Bulgarian stemmer should stem the same way these words, but it does not.  
биография =\> "биограф"  
биографията =\> "биографи"  
The correct is "биограф".  
The problem is huge because it happens in very common case of stemming.  
I wrote the document used to implement the algorithm and there the logic looks correct. I guess there is some mistake in implementation.

Thanks a lot

---

<div class="post-metadata">

**Author:** ![mayya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mayya/32/83147_2.png) [@mayya](https://discuss.elastic.co/u/mayya)\
**Post date:** [February 25, 2021, 1:48am UTC](https://discuss.elastic.co/t/bulgarian-stemming/265002/2 "2021-02-25T01:48:38Z")

</div>

Elasticsearch uses analyzers from Lucene. Here is the source code of this specific [bulgarian stemmer](https://github.com/apache/lucene-solr/blob/master/lucene/analysis/common/src/java/org/apache/lucene/analysis/bg/BulgarianStemmer.java).

Feel free to file an [issue in Lucene](https://issues.apache.org/jira/projects/LUCENE/issues/LUCENE-9334?filter=allopenissues) or create your own patch.

---

<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:** [March 25, 2021, 1:48am UTC](https://discuss.elastic.co/t/bulgarian-stemming/265002/3 "2021-03-25T01:48:43Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
