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
editScript 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.