Skip to content

Painless - Provide a Limited Set of Date Functions #22162

@gingerwizard

Description

@gingerwizard

Discussed this with @jdconrad

Date formatting and manipulation in Painless currently relies on using native Java methods which are probably not performant. Example - suppose i want to show dates by day (mon-sun). This is a reasonably common usecase. I resort to:

new SimpleDateFormat('E').format(new Date(doc['created_on'].value))

Proposal is for a simple set of date parsing functions - to and from string.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions