Skip to content

secondOfDay Date Field API not working v7.2.0 #44411

Closed
@markwheal

Description

@markwheal

Elasticsearch version (bin/elasticsearch --version):
v7.2.0

Plugins installed: []
JVM version (java -version):
OS version (uname -a if on a Unix-like system):

Description of the problem including expected versus actual behavior:

Since upgrading to 7.2.0 my scripted field of doc['timestamp'].date.secondOfDay has stopped working, and no data shows up in Discover mode!

Steps to reproduce:

Please include a minimal but complete recreation of the problem, including
(e.g.) index creation, mappings, settings, query etc. The easier you make for
us to reproduce it, the more likely that somebody will take the time to look at it.

doc['field_name'].date.secondOfDay is given as an example in documentation - https://www.elastic.co/guide/en/elasticsearch/reference/7.2/modules-scripting-expression.html

I have also tried doc['@timestamp'].date.secondOfDay - note the different field name; timestamp is our own field that we populate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions