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

Register file fail in ES 6.2.3. #3

Open
saizinhanhlaing opened this issue Jun 1, 2018 · 2 comments
Open

Register file fail in ES 6.2.3. #3

saizinhanhlaing opened this issue Jun 1, 2018 · 2 comments
Labels

Comments

@saizinhanhlaing
Copy link

I want to ask one thing.
I was trying to register the dictionary file into ES 6.2.3 by using your plugin.
I run this curl command but it was fail.

curl -XPOST -H 'Content-Type:application/json' localhost:9200/_configsync/file?path=stemmer_override.txt --data-binary @stemmer_override.txt

My file contain the following data.

running => run
stemmer => stemmer
add => adding

When I run that command it show the following error that content-type header is not supported.

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

I would like to know is it because of ES itself or this plugin.
Could you please answer ?(^^ @marevol

@marevol
Copy link
Contributor

marevol commented Jun 1, 2018

I cannot reproduce it...

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

-H option seems to be ignored in your environment.

@saizinhanhlaing
Copy link
Author

Thank you for your reply. @marevol
Now I got it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants