Polish analyzer


(Tomasz Kloc) #1

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


(Shay Banon) #2

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.comwrote:

Hi,

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

regrads,
tk


(Tomasz Kloc) #3

Thanks!

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

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

(Shay Banon) #4

Did you install the plugin?

On Thu, Jan 19, 2012 at 7:02 PM, Tomasz Kloc tomek.kloc.iit@gmail.comwrote:

**
Thanks!

How should i use it?:slight_smile: 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.comwrote:

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


(Tomasz Kloc) #5

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:
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

(Shay Banon) #6

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.comwrote:

**
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.comwrote:

Thanks!

How should i use it?:slight_smile: 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.comwrote:

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


(Tomasz Kloc) #7

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?


(Shay Banon) #8

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.comwrote:

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?


(Rafał Kuć-2) #9

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 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.comwrote:

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?


(system) #10