You are looking at documentation for an older release. Not what you want? See the current release documentation.
Use a Painless script in a function score to apply a new score to documents returned from a query.
- User-defined parameters passed in as part of the query.
- Contains the fields of the current document where each field is a
- The similarity score of the current document.
- The score for the current document.
The standard Painless API is available.