Filter contextedit

Use a Painless script as a filter in a query to include and exclude documents.

Variables

params (Map, read-only)
User-defined parameters passed in as part of the query.
doc (Map, read-only)
Contains the fields of the current document where each field is a List of values.

Return

boolean
Return true if the current document should be returned as a result of the query, and false otherwise.

API

The standard Painless API is available.