# Ingestion pipeline key value pair

**URL:** <https://discuss.elastic.co/t/ingestion-pipeline-key-value-pair/272811>\
**Category:** Kibana\
**Tags:** ingest-pipeline\
**Created:** [May 12, 2021, 1:14pm UTC](https://discuss.elastic.co/t/ingestion-pipeline-key-value-pair/272811 "2021-05-12T13:14:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![accateo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/accateo/32/85332_2.png) [@accateo](https://discuss.elastic.co/u/accateo)\
**Post date:** [May 12, 2021, 1:14pm UTC](https://discuss.elastic.co/t/ingestion-pipeline-key-value-pair/272811/1 "2021-05-12T13:14:53Z")

</div>

Hi,  
I have a index mappings like this:

```auto
...
"location": {
          "type": "nested",
          "properties": {
            "accuracy": {
              "type": "float"
            },
            "lat": {
              "type": "float"
            },
            "lon": {
              "type": "float"
            }
          }
        },
...

```

I would create an ingestion pipeline that creates a new field (for example "geo") only with lat and lon subfield, without accuracy.

How can I do?  
Thanks

---

<div class="post-metadata">

**Author:** ![Felix\_Roessel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felix_roessel/32/41623_2.png) [@Felix\_Roessel](https://discuss.elastic.co/u/Felix_Roessel)\
**Post date:** [May 13, 2021, 5:50am UTC](https://discuss.elastic.co/t/ingestion-pipeline-key-value-pair/272811/2 "2021-05-13T05:50:28Z")

</div>

And whats your issue?  
Just use the set processor

> **[Set processor | Elasticsearch Guide \[master\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/master/set-processor.html)**

---

<div class="post-metadata">

**Author:** ![accateo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/accateo/32/85332_2.png) [@accateo](https://discuss.elastic.co/u/accateo)\
**Post date:** [May 13, 2021, 7:05am UTC](https://discuss.elastic.co/t/ingestion-pipeline-key-value-pair/272811/3 "2021-05-13T07:05:37Z")

</div>

I dont know how to do.

I have to use "copy\_from"? How can I copy only two fields of location?

---

<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:** [June 11, 2021, 3:12pm UTC](https://discuss.elastic.co/t/ingestion-pipeline-key-value-pair/272811/5 "2021-06-11T15:12:34Z")

</div>

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