jprante / elasticsearch-langdetect

A plugin for language detection in Elasticsearch using Nakatani Shuyo's language detector
Apache License 2.0
251 stars 46 forks source link

unrecognized parameter: [profile] #53

Open moknomo opened 7 years ago

moknomo commented 7 years ago

Example request in readme curl -XPOST 'localhost:9200/_langdetect?pretty&profile=short-text' -d 'Das ist ein Test' return

{
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_argument_exception",
        "reason" : "request [/_langdetect] contains unrecognized parameter: [profile]"
      }
    ],
    "type" : "illegal_argument_exception",
    "reason" : "request [/_langdetect] contains unrecognized parameter: [profile]"
  },
  "status" : 400
}

elastic version

"version" : {
    "number" : "5.1.2",
    "build_hash" : "c8c4c16",
    "build_date" : "2017-01-11T20:18:39.146Z",
    "build_snapshot" : false,
    "lucene_version" : "6.3.0"
}
antonsar commented 7 years ago

I am having this exact same issue, were you able to find the solution ?

https://github.com/jprante/elasticsearch-langdetect/issues/63

moknomo commented 7 years ago

Sorry, i can't fixed it

antonsar commented 7 years ago

Hi Moknomo,

Actually I figured out what the issue was. Profile is not supported for Version 5.1.2!! You would need to grab the later version.

Cheers!

antonsar commented 7 years ago

This ticket should be closed since the issue is resolved