-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Opt date valued script fields out of rate limit #61238
Opt date valued script fields out of rate limit #61238
Conversation
Pinging @elastic/es-search (:Search/Search) |
This excuses script fields from the script compilation rate limiting. It'd be fairly sad to prevent mapping updates because of the rate limit. And we don't expect folks to add a zillion fields. On the other hand, once we allow these scripts on the `_search` request we might indeed want them to be considered in the limit. But we don't support that yet and we can deal with that when we get there.
@@ -21,7 +21,7 @@ | |||
import java.util.Map; | |||
|
|||
public abstract class DateScriptFieldScript extends AbstractLongScriptFieldScript { | |||
public static final ScriptContext<Factory> CONTEXT = new ScriptContext<>("date_script_field", Factory.class); | |||
public static final ScriptContext<Factory> CONTEXT = newContext("date", Factory.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've only done this to a single script field. If we like it I'd be happy to do it in a follow up.
@stu-elastic @jdconrad can either of you have a look too, please? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM I asked the painless folks to also have a look, just to make sure that we are all on the same page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks everyone! |
This excuses script fields from the script compilation rate limiting.
It'd be fairly sad to prevent mapping updates because of the rate limit.
And we don't expect folks to add a zillion fields. On the other hand,
once we allow these scripts on the
_search
request we might indeedwant them to be considered in the limit. But we don't support that yet
and we can deal with that when we get there.