jprante / elasticsearch-plugin-bundle

A bundle of useful Elasticsearch plugins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plugin langdetect not working under ES 2.0

mptei opened this issue · comments

commented

Trying the langdetect example from README.md with ES-2.0.0-Beta1 I get no hits, but also no error message.

When I change the command for creating the mapping to:

curl -XPOST 'localhost:9200/test/article/_mapping' -d '
{
"article" : {
"properties" : {
"content" : { "type" : "langdetect", "store" : "yes" }
}
}
}
'
I get the following error

{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Mapping definition for [content] has unsupported parameters: [store : yes]"}],"type":"mapper_parsing_exception","reason":"Mapping definition for [content] has unsupported parameters: [store : yes]"},"status":400}

Do you have an idea what could be the problem?

commented

OK, now I've seen the examples aren't working anymore, because of the changed "language.json". Searching for english should be done with "eng" instead of "en" ...
What was the reason to change that mapping?

Sorry. This change was not intended. But you can safely remove/clear language.json, it adds the possibility of changing the language code by configuration.

I will try to find a solution for the "store":"yes" exception.

commented

How is the relation of this plugin bundle to the single langdetect plugin?
For me it seems as if after copying the langdetect plugin into the bundle, the single langdetect plugin got some changes, which don't made it into the bundle.

Is the single langdetect plugin still alive?

Sorry for the confusion. I forked once but forgot to sync the changes. Please be patient for a new release which will be synced (both standalone and bundle)