Skip to content

Conversation

@nik9000
Copy link
Member

@nik9000 nik9000 commented Aug 17, 2020

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.

@nik9000 nik9000 added the :Search/Search Search-related issues that do not fall into other categories label Aug 17, 2020
@nik9000 nik9000 requested a review from javanna August 17, 2020 20:55
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (:Search/Search)

@elasticmachine elasticmachine added the Team:Search Meta label for search team label Aug 17, 2020
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.

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);
Copy link
Member Author

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.

@javanna javanna mentioned this pull request Aug 17, 2020
30 tasks
@javanna
Copy link
Member

javanna commented Aug 18, 2020

@stu-elastic @jdconrad can either of you have a look too, please? Thanks!

Copy link
Member

@javanna javanna left a 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.

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nik9000
Copy link
Member Author

nik9000 commented Aug 18, 2020

Thanks everyone!

@nik9000 nik9000 merged commit 40e3aec into elastic:feature/runtime_fields Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants