Select Element from Array by Index trough {{path}}


(David) #1

Hi,

how can I select a specified element from an arry by there index in a {{path}}-Expression like

{{ctx.payload.hits.hits[0].field}}.

I read that it could be referenced by there idx directly like {{ctx.payload.hits.hits.0.field}}, but it does not work.

I am using Elasticsearch 5.4 with XPack

Best regards

David


(system) #2

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