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

_langdetect REST Endpoint #36

Open
marbleman opened this issue Sep 15, 2017 · 2 comments
Open

_langdetect REST Endpoint #36

marbleman opened this issue Sep 15, 2017 · 2 comments

Comments

@marbleman
Copy link

Hi Jörg,

after a long time staying with ES2.3 we decided to move on to ES5.3 now. All the plugins work fine, except the _langdetect REST endpoint and I figured that even the parts of documentation I added to your langdetect Repo quite a while ago seem to be obsolete now:

GET _langdetect
{
   "text": "das ist ein test"
}

gives me

{
   "error": {
      "root_cause": [
         {
            "type": "json_generation_exception",
            "reason": "Can not write a field name, expecting a value"
         }
      ],
      "type": "json_generation_exception",
      "reason": "Can not write a field name, expecting a value"
   },
   "status": 500
}

whereas
curl -XPOST 'localhost:9200/_langdetect?pretty' -d 'This is a test'

returns

{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}

Unfortunately our code relies pretty much on the REST endpoint for checking the language before a document is indexed.

The Handler for _langdetect still exists and is accessible. So what am I missing? Can you give me a hint, please?

@marbleman
Copy link
Author

no comments at all?

@edudev
Copy link

edudev commented Nov 7, 2018

I've opened a new issue and described the problem and provided a fix for ES 5.3: #37

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