This isn't any sort of issue so much as it is a request to help me satisfy my own curiosity.
The DSL for using a script
in a query looks like:
{
"query": {
"script": {
"script": {
"file": "my_scripted_check"
}
}
}
}
My question is why are their two script
keys? Are there other keys that can be placed in the upper most script
object to alter behaviour? Is this simply a legacy of removed functionality? This doesn't occur with scripted aggregations or scoring, only in queries, and I've not managed to find anything in the current documentation to offer insight as to why it might be this way.
Please help put my brain out of it's misery!