IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Script Filter
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Script Filter
editSee Script Filter
FilterBuilder filter = FilterBuilders.scriptFilter(
"doc['age'].value > param1"
).addParam("param1", 10);
Note that you can cache the result using
ScriptFilterBuilder#cache(boolean) method. See Caching.