Did custom analyzer configuration change in 0.9?


(John Chang) #1

Hello,

With elastic search 0.8, I wrote a custom analyzer provider and used it as directed here:
http://www.elasticsearch.com/docs/elasticsearch/index_modules/analysis/

I configured it into elasticsearch.yml and named it in my field mappings, and it worked great.

With 0.9, I get problems when I try to put my mappings. I get:
{"error":"MapperParsingException[Analyzer [snowball] not found for field [to]]"}

I should note that one curious thing is that the 'to' field named in the message is NOT the first field named in my mappings.

Upgrading to 0.9, my elasticsearch.yml is the same, my mappings are the same. The java of my custom analyzer class did change slightly because it seemed some of the packages of the classes it depends on changed, such as org.elasticsearch.util.settings.Settings seems to have changed to org.elasticsearch.common.settings.Settings. W/ 0.9 client jar, org.elasticsearch.util.settings.Settings doesn't even seem to be there any longer.

Any help getting the custom analyzer provider to work under 0.9 would be appreciated.

Thanks.


(Shay Banon) #2

The specific configuration of analyzers did not change, but other things
changed. Can you post a curl example?

-shay.banon

On Wed, Jul 28, 2010 at 3:19 AM, John Chang jchangkihtest2@gmail.comwrote:

Hello,

With elastic search 0.8, I wrote a custom analyzer provider and used it as
directed here:
http://www.elasticsearch.com/docs/elasticsearch/index_modules/analysis/

I configured it into elasticsearch.yml and named it in my field mappings,
and it worked great.

With 0.9, I get problems when I try to put my mappings. I get:
{"error":"MapperParsingException[Analyzer [snowball] not found for field
[to]]"}

I should note that one curious thing is that the 'to' field named in the
message is NOT the first field named in my mappings.

Upgrading to 0.9, my elasticsearch.yml is the same, my mappings are the
same. The java of my custom analyzer class did change slightly because it
seemed some of the packages of the classes it depends on changed, such as
org.elasticsearch.util.settings.Settings seems to have changed to
org.elasticsearch.common.settings.Settings. W/ 0.9 client jar,
org.elasticsearch.util.settings.Settings doesn't even seem to be there any
longer.

Any help getting the custom analyzer provider to work under 0.9 would be
appreciated.

Thanks.

View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/Did-custom-analyzer-configuration-change-in-0-9-tp1001155p1001155.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.


(system) #3