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

Plugin langdetect not working under ES 2.0 #7

Open
mptei opened this issue Sep 7, 2015 · 5 comments
Open

Plugin langdetect not working under ES 2.0 #7

mptei opened this issue Sep 7, 2015 · 5 comments

Comments

@mptei
Copy link

mptei commented Sep 7, 2015

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?

@mptei
Copy link
Author

mptei commented Sep 7, 2015

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?

@jprante
Copy link
Owner

jprante commented Sep 7, 2015

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.

@jprante
Copy link
Owner

jprante commented Sep 7, 2015

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

@mptei
Copy link
Author

mptei commented Sep 8, 2015

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?

@jprante
Copy link
Owner

jprante commented Sep 8, 2015

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)

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

2 participants