You are looking at documentation for an older release. Not what you want? See the current release documentation.
Use a Painless script to sort the documents in 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 specified document.
The standard Painless API is available.