# What should I do if I need special analyzer in ElasticSearch?

**URL:** <https://discuss.elastic.co/t/what-should-i-do-if-i-need-special-analyzer-in-elasticsearch/306941>\
**Category:** Elasticsearch\
**Created:** [June 11, 2022, 4:58pm UTC](https://discuss.elastic.co/t/what-should-i-do-if-i-need-special-analyzer-in-elasticsearch/306941 "2022-06-11T16:58:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gresmir](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@Gresmir](https://discuss.elastic.co/u/Gresmir)\
**Post date:** [June 11, 2022, 4:58pm UTC](https://discuss.elastic.co/t/what-should-i-do-if-i-need-special-analyzer-in-elasticsearch/306941/1 "2022-06-11T16:58:11Z")

</div>

In my textual data, I have structures like this:

> ст. ст. 40, 131, 132, 176-178, 183, ч. 2 ст. 187, 188, 184, 189, 194 KK

Where KK is the name of a codex, ст. ст., or ст. mean article, ч. mean part. I want Elasticsearch to find a similar string using a regular expression and execute a script to process this string so that I can get tokens like these

> 40 KK, 131 KK, ..... 194 KK.

How can I get it in Elasticsearch?

---

<div class="post-metadata">

**Author:** ![Mikhail\_Khludnev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikhail_khludnev/32/59591_2.png) [@Mikhail\_Khludnev](https://discuss.elastic.co/u/Mikhail_Khludnev)\
**Post date:** [June 11, 2022, 7:00pm UTC](https://discuss.elastic.co/t/what-should-i-do-if-i-need-special-analyzer-in-elasticsearch/306941/2 "2022-06-11T19:00:50Z")

</div>

It seems like a specific entity extraction aka NER. I think it should be done in upstream (out of ES).

---

<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 9, 2022, 7:01pm UTC](https://discuss.elastic.co/t/what-should-i-do-if-i-need-special-analyzer-in-elasticsearch/306941/3 "2022-07-09T19:01:36Z")

</div>

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