-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Script_File support for NEST #1456
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
Comments
This would be great - it is best practice to use stored scripts over anything else isn't it? (https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html) It would be nice to be able to use scripts safely and disable dynamic scripting. |
Just added. Thanks for reporting @vineet85 |
Can this be added to the BulkUpdateDescriptor as well? Eg:- for (int i = 0; i < searchResponse.Hits.Count(); i++)
Thanks, On Sun, Jun 14, 2015 at 10:16 PM, Greg Marzouka [email protected]
Vineet Saju |
From @vineet85 on June 14, 2015 20:15
Hi,
ElasticSearch supports referencing a script which is stored in a file. Eg:-
GET /_search
{
"script_fields": {
"my_field": {
"script_file": "my_script",
"params": {
"my_var": 2
}
}
}
}
However the .NET NEST client does not have any support for this yet. Is this going to be added soon?
elasticsearch-net/src/Nest/DSL/Filter/ScriptFilterDescriptor.cs
Line 36 in 4fcecae
Thanks,
Vineet
Copied from original issue: elastic/elasticsearch#11652
The text was updated successfully, but these errors were encountered: