NEST by Elastic and contributors

<PackageReference Include="NEST" Version="5.4.0" />

.NET API 4,554,240 bytes

 ScriptQueryDescriptor<T>

public ScriptQueryDescriptor<T> File(string scriptFile)

File name of a script to execute

public ScriptQueryDescriptor<T> Id(string scriptId)

Id of an indexed script to execute

public ScriptQueryDescriptor<T> Inline(string script)

Inline script to execute

public ScriptQueryDescriptor<T> Lang(string lang)

Language of script.

Language of script.

public ScriptQueryDescriptor<T> Params(Func<FluentDictionary<string, object>, FluentDictionary<string, object>> paramDictionary)

Scripts are compiled and cached for faster execution. If the same script can be used, just with different parameters provided, it is preferable to use the ability to pass parameters to the script itself.