79628032

Date: 2025-05-19 03:09:45
Score: 2
Natty:
Report link

if (doc.containsKey('end_time') && doc.containsKey('start_time') && !doc['end_time'].empty && !doc['start_time'].empty) { return (doc['end_time'].value.toInstant().toEpochMilli() - doc['start_time'].value.toInstant().toEpochMilli()) / 1000; } return null;

script for elastic duation

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Scarlet Knight