Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MapperParsingException #4

Closed
lfiaschi opened this issue Dec 16, 2014 · 6 comments
Closed

MapperParsingException #4

lfiaschi opened this issue Dec 16, 2014 · 6 comments

Comments

@lfiaschi
Copy link

Hi,
I am trying to use the plugin however I did not manage to make it work.

After installation from binary source it seems to correctly load:

[2014-12-16 11:17:05,552][INFO ][node                     ] [elasticsearch] version[1.3.4], pid[3794], build[a70f3cc/2014-09-30T09:07:17Z]
[2014-12-16 11:17:05,553][INFO ][node                     ] [elasticsearch] initializing ...
[2014-12-16 11:17:05,577][INFO ][plugins                  ] [elasticsearch] loaded [marvel, jdbc-1.3.4.4-d2e33c3, analysis-vietnamese], sites [marvel]

However when I try to set a custom in the mapping of a new index as:

"keyword_account": {"fields": {"raw": {"index": "not_analyzed", "type": "string"}, 
"en": {"type": "string", "analyzer": "my_english"}, 
"th": {"type": "string", "analyzer": "thai"}, 
"splitted": {"type": "string", "analyzer": "my_analyzer"}, 
"id": {"type": "string", "analyzer": "indonesian"}, 
"vn": {"type": "string", "analyzer": "vi_analyzer"}
}, 
"type": "string"}

I get the following response:

 u'MapperParsingException[Analyzer [vi_analyzer] not found for field [vn]]

any clue?

@duydo
Copy link
Owner

duydo commented Dec 18, 2014

It seems that the plugin was not installed properly. What do you see when you run following command?

curl http://localhost:9200/_analyze?analyzer=vi_analyzer -d '{"text": "công nghệ thông tin Việt Nam"}'

@icovn
Copy link

icovn commented May 11, 2015

After I install I run above curl command and I get this:
{"error":"ElasticsearchIllegalArgumentException[text is missing]","status":400}
Please explain this problem to me!

@dripp1
Copy link

dripp1 commented Aug 19, 2015

Do you have a version compatible with ElasticSearch 1.6?

@duydo
Copy link
Owner

duydo commented Sep 4, 2015

Hi @dripp1
Sorry for late reply. I've just released the version 1.6, you can download it here https://dl.dropboxusercontent.com/u/1598491/elasticsearch-analysis-vietnamese-0.1.6.zip

@dripp1
Copy link

dripp1 commented Sep 6, 2015

Thank you!

@duydo
Copy link
Owner

duydo commented Sep 10, 2015

@icovn try this one:

curl http://localhost:9200/_analyze?analyzer=vi_analyzer -d 'công nghệ thông tin Việt Nam'

Result:

{
   "tokens": [
      {
         "token": "công nghệ thông tin",
         "start_offset": 2,
         "end_offset": 21,
         "type": "word",
         "position": 3
      },
      {
         "token": "việt nam",
         "start_offset": 21,
         "end_offset": 29,
         "type": "name2",
         "position": 6
      }
   ]
}

@duydo duydo closed this as completed Sep 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants