# Reindexing with new nested property changes dot to json representation

**URL:** https://discuss.elastic.co/t/reindexing-with-new-nested-property-changes-dot-to-json-representation/268256
**Category:** Elasticsearch
**Created:** [March 24, 2021, 6:49pm UTC](https://discuss.elastic.co/t/reindexing-with-new-nested-property-changes-dot-to-json-representation/268256 "2021-03-24T18:49:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![makmnr](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@makmnr](https://discuss.elastic.co/u/makmnr)
#### Post date: [March 24, 2021, 6:49pm UTC](https://discuss.elastic.co/t/reindexing-with-new-nested-property-changes-dot-to-json-representation/268256/1 "2021-03-24T18:49:19Z")

</div>

I am trying to reindex in order to make field renames. But there are a lot of challenges as the fields to be renamed and old fields are objects. Following is a sample code to represent the issue:

> **Processor Simulate**
>
> @POST [http://localhost:9200/\_ingest/pipeline/\_simulate](http://localhost:9200/_ingest/pipeline/_simulate)
> 
> > ```
> > {
> > "pipeline": {
> > "description": "rename value",
> > "processors": [
> > {
> > "rename": {
> > "field": "value",
> > "target_field": "rename.dot.value"
> > }
> > }
> > ]
> > },
> > "docs": [
> > {
> > "_index": "m01",
> > "_type": "_doc",
> > "_id": "tmsFWXgBxm2IA0nNFFyd",
> > "_score": 1,
> > "_source": {
> > "value": 1577817000000,
> > "normal.dot.value": 14.730047989520438
> > }
> > }
> > ]
> > }
> > 
> > ```

Output

> ```
> {
> "docs": [
> {
> "doc": {
> "_index": "m01",
> "_type": "_doc",
> "_id": "tmsFWXgBxm2IA0nNFFyd",
> "_source": {
> "normal.dot.value": 14.730047989520438,
> "rename": {
> "dot": {
> "value": 1577817000000
> }
> }
> },
> "_ingest": {
> "timestamp": "2021-03-24T17:54:11.436172Z"
> }
> }
> }
> ]
> }
> 
> ```

**There are two representations of object in output after applying processor, one with dot operator and other as json. I want all data to come with dot operator, please help me achieve this**

---

<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: [April 21, 2021, 6:49pm UTC](https://discuss.elastic.co/t/reindexing-with-new-nested-property-changes-dot-to-json-representation/268256/2 "2021-04-21T18:49:47Z")

</div>

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