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

How fix it ? #7

Open
ghost opened this issue Apr 3, 2016 · 5 comments
Open

How fix it ? #7

ghost opened this issue Apr 3, 2016 · 5 comments

Comments

@ghost
Copy link

ghost commented Apr 3, 2016

Elasticsearch::Transport::Transport::Errors::BadRequest in AnimesController#index

screenshot

@zacksiri
Copy link
Member

zacksiri commented Apr 3, 2016

@kota-kun Check your multi_match query you are not passing anything into it thats why its throwing that error.

@ghost
Copy link
Author

ghost commented Apr 3, 2016

@zacksiri
Hmmm
http://take.ms/b2ylZ

If you use in my anime_controller:
@animes = Anime.custom_search((params[:q].present? ? params[:q] : '*')).records
That's all displayed.

What if:
@animes = Anime.custom_search((params[:q].present? ? params[:q] : '*')).results
That is not.

@ghost
Copy link
Author

ghost commented Apr 3, 2016

Show you how to make so that it was not such an empty query?
http://take.ms/Agq2Z

@naveen1336
Copy link

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

@VinothiniBalakrishnan
Copy link

While run this application locally getting this issue

action controller exception caught

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

3 participants