Hi,
Suppose i have a custom wrapper class which has many fields in it. Some of which are simple primitive fields like strings, integers while other are highly nested fields.
Along with these fields say i have latitude and longitude fields which again can be in some nested location class.
How can i make a mapping for these latitude and longitude fields while creating an index.
Following the elasticsearch mapping documentation, i was able to create mapping but then while inserting data through java spring api, the error i got was that location fields should only contain latitude and longitude fields.
So, the question is how can i have a custom mapping for geo point for some custom location object.
Looking forward to some feedback.
Thanks
P.S. I am trying to achieve this using java and spring.