Expand description
Script score query: custom scoring via compiled expressions.
Parses a simple expression language at weight creation time and compiles it to a Rust closure for zero-overhead per-doc evaluation.
Supports: _score, numeric literals, +, -, *, /, parentheses,
Math.log(), Math.sqrt(), Math.pow(), Math.max(), Math.min(),
Math.abs(), and user-defined params.
See [[elasticsearch-parity]] and [[investigation-20260320-01-monty-script-score-overhead]].