Hello there,
actually i am trying to compare bounding boxes and score them. For that i am using a painless script which helps me with the math. Unfortunately in some cases my documents doesn't contain only one coordinate for a bounding box side. So it is saved as
"BB_North" : [
54.5,
53.964153
],
Not really a problem if i would know how to access the indexes or even if that isn't the case, elastic search would serve me everytime the last coordinate. Both isn't really the case XD. So first i don't really know how to acces a specific index of the array (doc['BB_North'].value only gives one coordinate). And second, because doc['BB_North'].value obviously gives me a coordinate it is not everytime the same coordinate of the same Place. So in my case Elastic search gives me everytime the last coordinate except for the South coordinate. There Elastic search returns the first one. And i don't even know why he is doing this :D.
I maybe could use a little help here XD.
Is there a way to acces a specific index of the array, or maybe the hole array to iterate through it?
That's it,
Cheers.
Oh and sorry for the mistakes, i am not a native english speaker.