# Merging documents in elasticsearch

**URL:** <https://discuss.elastic.co/t/merging-documents-in-elasticsearch/237704>\
**Category:** Elasticsearch\
**Created:** [June 18, 2020, 9:27pm UTC](https://discuss.elastic.co/t/merging-documents-in-elasticsearch/237704 "2020-06-18T21:27:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gauti](https://avatars.discourse-cdn.com/v4/letter/g/cdc98d/32.png) [@Gauti](https://discuss.elastic.co/u/Gauti)\
**Post date:** [June 18, 2020, 9:27pm UTC](https://discuss.elastic.co/t/merging-documents-in-elasticsearch/237704/1 "2020-06-18T21:27:35Z")

</div>

Hi All,  
We are pulling data from servicenow using logstash http poller. The rest api which I am using has a field call location, which is a location name(chennai, India) I doesnot have latitude and longitude field.

We got to know servicenow maintains location information in a different table...so we have ingested data from that table into elasticsearch now I have two index  
one without latitude and longitude information.  
Two with latitude and longitude information

Now my question is how do I merge these two index to get the lat & long and create map visualization.

Or is there any other way to get the lat & long get attached with the document.  
Any advice please

Thanks  
Gautham

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 16, 2020, 9:27pm UTC](https://discuss.elastic.co/t/merging-documents-in-elasticsearch/237704/2 "2020-07-16T21:27:41Z")

</div>

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