About Rejectting Query

Hi,

Recently, I met some bad queries that have make my ES suffer high query time and load average. Therefore, I want to know some questions as followed:

  1. What's the mechanism of rejectting query for ES.
  2. How to configure the mechanism of reject query if I want to block some bad query that will make the elasticsearch suffer high query time and load average.

Thank you

There are currently none.

5.X is likely to have something to manage this though.