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

Hardcode painless as the default scripting lang and add legacy script default for stored scripts #20310

Merged
merged 1 commit into from
Sep 6, 2016

Commits on Sep 6, 2016

  1. * Removed script.default_lang setting and made painless the hardc…

    …oded default script language.
    
    ** The default script language is now maintained in `Script` class.
    * Added `script.legacy.default_lang` setting that controls the default language for scripts that are stored inside documents (for example percolator queries).  This defaults to groovy.
    ** Added `QueryParseContext#getDefaultScriptLanguage()` that manages the default scripting language. Returns always `painless`, unless loading query/search request in legacy mode then the returns what is configured in `script.legacy.default_lang` setting.
    ** In the aggregation parsing code added `ParserContext` that also holds the default scripting language like `QueryParseContext`. Most parser don't have access to `QueryParseContext`. This is for scripts in aggregations.
    * The `lang` script field is always serialized (toXContent).
    
    Closes elastic#20122
    martijnvg committed Sep 6, 2016
    Configuration menu
    Copy the full SHA
    245882c View commit details
    Browse the repository at this point in the history