Lucene expressions are a very powerful tool for easy scoring adjustments, without writing custom Java code. The thing that makes Lucene expressions very handy is that using them is very fast-their execution is as fast as native scripts since each expression is compiled to Java bytecode, to achieve native code-like performance, yet they are like dynamic scripts with some limitations. This section will show you what you can do with Lucene expressions.
Scripts responsible for sorting
Aggregations that work on numeric fields
function_scorequery under the
In queries using
In addition to this, you have to remember that:
Lucene expressions can be only used on numeric fields