# Polish analyzer

**URL:** <https://discuss.elastic.co/t/polish-analyzer/6428>\
**Category:** Elasticsearch\
**Created:** [January 18, 2012, 10:23am UTC](https://discuss.elastic.co/t/polish-analyzer/6428 "2012-01-18T10:23:07Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tomasz\_Kloc](https://avatars.discourse-cdn.com/v4/letter/t/958977/32.png) [@Tomasz\_Kloc](https://discuss.elastic.co/u/Tomasz_Kloc)\
**Post date:** [January 18, 2012, 10:23am UTC](https://discuss.elastic.co/t/polish-analyzer/6428/1 "2012-01-18T10:23:07Z")

</div>

Hi,

Any chance to get this  
[https://github.com/elasticsearch/elasticsearch/issues/1155](https://github.com/elasticsearch/elasticsearch/issues/1155) solved before  
v0.18.8 ? I would like to help, but i'm not familiar w java.

regrads,  
tk

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [January 19, 2012, 2:04pm UTC](https://discuss.elastic.co/t/polish-analyzer/6428/2 "2012-01-19T14:04:40Z")

</div>

I added a stempel plugin that you can use  
[GitHub - elastic/elasticsearch-analysis-stempel: Stempel (Polish) Analysis Plugin for Elasticsearch](https://github.com/elasticsearch/elasticsearch-analysis-stempel).

On Wed, Jan 18, 2012 at 12:23 PM, Tomasz Kloc [tomek.kloc.iit@gmail.com](mailto:tomek.kloc.iit@gmail.com)wrote:

> Hi,
> 
> Any chance to get this [https://github.com/\*\*elasticsearch/elasticsearch/](https://github.com/**elasticsearch/elasticsearch/)\*\*  
> issues/1155 [https://github.com/elasticsearch/elasticsearch/issues/1155](https://github.com/elasticsearch/elasticsearch/issues/1155)solved before v0.18.8 ? I would like to help, but i'm not familiar w java.
> 
> regrads,  
> tk

---

<div class="post-metadata">

**Author:** ![Tomasz\_Kloc](https://avatars.discourse-cdn.com/v4/letter/t/958977/32.png) [@Tomasz\_Kloc](https://discuss.elastic.co/u/Tomasz_Kloc)\
**Post date:** [January 19, 2012, 5:02pm UTC](https://discuss.elastic.co/t/polish-analyzer/6428/3 "2012-01-19T17:02:28Z")

</div>

Thanks!

How should i use it?🙂 I've tried to add "analyzer": "polish" to the  
query, but exception was raised:

> <https://gist.github.com/anonymous/1641180>

On 19.01.2012 15:04, Shay Banon wrote:

> I added a stempel plugin that you can use  
> [GitHub - elastic/elasticsearch-analysis-stempel: Stempel (Polish) Analysis Plugin for Elasticsearch](https://github.com/elasticsearch/elasticsearch-analysis-stempel).
> 
> On Wed, Jan 18, 2012 at 12:23 PM, Tomasz Kloc  
> \<[tomek.kloc.iit@gmail.com](mailto:tomek.kloc.iit@gmail.com) [mailto:tomek.kloc.iit@gmail.com](mailto:tomek.kloc.iit@gmail.com)\> wrote:
> 
> ```
> Hi,
> 
> Any chance to get this
> https://github.com/elasticsearch/elasticsearch/issues/1155 solved
> before v0.18.8 ? I would like to help, but i'm not familiar w java.
> 
> regrads,
> tk
> 
> ```

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [January 19, 2012, 6:10pm UTC](https://discuss.elastic.co/t/polish-analyzer/6428/4 "2012-01-19T18:10:01Z")

</div>

Did you install the plugin?

On Thu, Jan 19, 2012 at 7:02 PM, Tomasz Kloc [tomek.kloc.iit@gmail.com](mailto:tomek.kloc.iit@gmail.com)wrote:

> \*\*  
> Thanks!
> 
> How should i use it?🙂 I've tried to add "analyzer": "polish" to the  
> query, but exception was raised:  
> [gist:1641180 · GitHub](https://gist.github.com/1641180)
> 
> On 19.01.2012 15:04, Shay Banon wrote:
> 
> I added a stempel plugin that you can use  
> [GitHub - elastic/elasticsearch-analysis-stempel: Stempel (Polish) Analysis Plugin for Elasticsearch](https://github.com/elasticsearch/elasticsearch-analysis-stempel).
> 
> On Wed, Jan 18, 2012 at 12:23 PM, Tomasz Kloc [tomek.kloc.iit@gmail.com](mailto:tomek.kloc.iit@gmail.com)wrote:
> 
> > Hi,
> > 
> > Any chance to get this  
> > [Add polish language analyzer · Issue #1155 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1155) solved before  
> > v0.18.8 ? I would like to help, but i'm not familiar w java.
> > 
> > regrads,  
> > tk

---

<div class="post-metadata">

**Author:** ![Tomasz\_Kloc](https://avatars.discourse-cdn.com/v4/letter/t/958977/32.png) [@Tomasz\_Kloc](https://discuss.elastic.co/u/Tomasz_Kloc)\
**Post date:** [January 19, 2012, 6:15pm UTC](https://discuss.elastic.co/t/polish-analyzer/6428/5 "2012-01-19T18:15:50Z")

</div>

Yes (elasticsearch was restarted after that)

On 19.01.2012 19:10, Shay Banon wrote:

> Did you install the plugin?
> 
> On Thu, Jan 19, 2012 at 7:02 PM, Tomasz Kloc \<[tomek.kloc.iit@gmail.com](mailto:tomek.kloc.iit@gmail.com)  
> [mailto:tomek.kloc.iit@gmail.com](mailto:tomek.kloc.iit@gmail.com)\> wrote:
> 
> ```
> Thanks!
> 
> How should i use it?:) I've tried to add "analyzer": "polish" to
> the query, but exception was raised:
> https://gist.github.com/1641180
> 
> On 19.01.2012 15:04, Shay Banon wrote:
> 
> ```
> 
> > ```
> > I added a stempel plugin that you can use
> > https://github.com/elasticsearch/elasticsearch-analysis-stempel.
> > 
> > On Wed, Jan 18, 2012 at 12:23 PM, Tomasz Kloc
> > <tomek.kloc.iit@gmail.com <mailto:tomek.kloc.iit@gmail.com>> wrote:
> > 
> > Hi,
> > 
> > Any chance to get this
> > https://github.com/elasticsearch/elasticsearch/issues/1155
> > solved before v0.18.8 ? I would like to help, but i'm not
> > familiar w java.
> > 
> > regrads,
> > tk
> > 
> > ```

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [January 19, 2012, 6:23pm UTC](https://discuss.elastic.co/t/polish-analyzer/6428/6 "2012-01-19T18:23:32Z")

</div>

It works find for me. Are you running elasticsearch embedded?

On Thu, Jan 19, 2012 at 8:15 PM, Tomasz Kloc [tomek.kloc.iit@gmail.com](mailto:tomek.kloc.iit@gmail.com)wrote:

> \*\*  
> Yes (elasticsearch was restarted after that)
> 
> On 19.01.2012 19:10, Shay Banon wrote:
> 
> Did you install the plugin?
> 
> On Thu, Jan 19, 2012 at 7:02 PM, Tomasz Kloc [tomek.kloc.iit@gmail.com](mailto:tomek.kloc.iit@gmail.com)wrote:
> 
> > Thanks!
> > 
> > How should i use it?🙂 I've tried to add "analyzer": "polish" to the  
> > query, but exception was raised:  
> > [gist:1641180 · GitHub](https://gist.github.com/1641180)
> > 
> > On 19.01.2012 15:04, Shay Banon wrote:
> > 
> > I added a stempel plugin that you can use  
> > [GitHub - elastic/elasticsearch-analysis-stempel: Stempel (Polish) Analysis Plugin for Elasticsearch](https://github.com/elasticsearch/elasticsearch-analysis-stempel).
> > 
> > On Wed, Jan 18, 2012 at 12:23 PM, Tomasz Kloc [tomek.kloc.iit@gmail.com](mailto:tomek.kloc.iit@gmail.com)wrote:
> > 
> > > Hi,
> > > 
> > > Any chance to get this  
> > > [Add polish language analyzer · Issue #1155 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1155) solved  
> > > before v0.18.8 ? I would like to help, but i'm not familiar w java.
> > > 
> > > regrads,  
> > > tk

---

<div class="post-metadata">

**Author:** ![Tomasz\_Kloc](https://avatars.discourse-cdn.com/v4/letter/t/958977/32.png) [@Tomasz\_Kloc](https://discuss.elastic.co/u/Tomasz_Kloc)\
**Post date:** [January 19, 2012, 6:45pm UTC](https://discuss.elastic.co/t/polish-analyzer/6428/7 "2012-01-19T18:45:10Z")

</div>

Thanks for hint. There was 2 ES on my workstation and i've installed  
plugin in the wrong one.

Now query goes with no exceptions.

Unfortunately, results are different than what i expected. There is one  
result for keyword 'sprzedaÅ¼y', but no results for 'sprzedazy'.

Mapping for this field:

'title': {'type': 'multi\_field', 'fields': {  
'title': {'type': 'string', 'index': 'analyzed', 'index\_analyzer':  
'polish', 'search\_analyzer': 'polish'},  
'untouched': {'type': 'string', 'index': 'not\_analyzed'},  
}},

On 19.01.2012 19:23, Shay Banon wrote:

> Are you running elasticsearch embedded?

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [January 19, 2012, 6:51pm UTC](https://discuss.elastic.co/t/polish-analyzer/6428/8 "2012-01-19T18:51:54Z")

</div>

Don't know if it does ascii folding as well. If not, then we need to expose  
a bit more to allow to construct a similar polish analyzer with ascii  
folding. Open an issue.

On Thu, Jan 19, 2012 at 8:45 PM, Tomasz Kloc [tomek.kloc.iit@gmail.com](mailto:tomek.kloc.iit@gmail.com)wrote:

> Thanks for hint. There was 2 ES on my workstation and i've installed  
> plugin in the wrong one.
> 
> Now query goes with no exceptions.
> 
> Unfortunately, results are different than what i expected. There is one  
> result for keyword 'sprzedaży', but no results for 'sprzedazy'.
> 
> Mapping for this field:
> 
> 'title': {'type': 'multi\_field', 'fields': {  
> 'title': {'type': 'string', 'index': 'analyzed', 'index\_analyzer':  
> 'polish', 'search\_analyzer': 'polish'},  
> 'untouched': {'type': 'string', 'index': 'not\_analyzed'},  
> }},
> 
> On 19.01.2012 19:23, Shay Banon wrote:
> 
> > Are you running elasticsearch embedded?

---

<div class="post-metadata">

**Author:** ![Rafal\_Kuc\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rafal_kuc_2/32/799_2.png) [@Rafal\_Kuc\_2](https://discuss.elastic.co/u/Rafal_Kuc_2)\
**Post date:** [January 26, 2012, 10:45am UTC](https://discuss.elastic.co/t/polish-analyzer/6428/9 "2012-01-26T10:45:08Z")

</div>

Hello,

Stempel doesn't do ascii folding as far as I know from using it with  
Solr. So there will be a need for a analyzer with folding.

regards  
Rafał

On 19 Sty, 19:51, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> Don't know if it does ascii folding as well. If not, then we need to expose  
> a bit more to allow to construct a similar polish analyzer with ascii  
> folding. Open an issue.
> 
> On Thu, Jan 19, 2012 at 8:45 PM, Tomasz Kloc [tomek.kloc....@gmail.com](mailto:tomek.kloc....@gmail.com)wrote:
> 
> > Thanks for hint. There was 2 ES on my workstation and i've installed  
> > plugin in the wrong one.
> 
> > Now query goes with no exceptions.
> 
> > Unfortunately, results are different than what i expected. There is one  
> > result for keyword 'sprzedaży', but no results for 'sprzedazy'.
> 
> > Mapping for this field:
> 
> > 'title': {'type': 'multi\_field', 'fields': {  
> > 'title': {'type': 'string', 'index': 'analyzed', 'index\_analyzer':  
> > 'polish', 'search\_analyzer': 'polish'},  
> > 'untouched': {'type': 'string', 'index': 'not\_analyzed'},  
> > }},
> 
> > On 19.01.2012 19:23, Shay Banon wrote:
> 
> > > Are you running elasticsearch embedded?

---

<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, 3:41am UTC](https://discuss.elastic.co/t/polish-analyzer/6428/10 "2017-07-06T03:41:23Z")

</div>


