You are looking at documentation for an older release. Not what you want? See the current release documentation.
Use a Painless script as a filter in a query to include and exclude documents.
- User-defined parameters passed in as part of the query.
- Contains the fields of the current document where each field is a
trueif the current document should be returned as a result of the query, and
The standard Painless API is available.