Can you use date_range fields in Painless scripts?


#1

Hi, I have a field called occupancy:

...
"occupancy": {
"type": "date_range",
"format": "yyyy-MM-dd"
},
...

I'm trying to use it in scripting, but failing with message: "Fielddata is not supported on field [occupancy] of type [date_range]"

Is there a way to use (array of) date_range fields in Painless scripts?


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.