# How to transform input before indexing document into elastic search

**URL:** <https://discuss.elastic.co/t/how-to-transform-input-before-indexing-document-into-elastic-search/235769>\
**Category:** Elasticsearch\
**Created:** [June 4, 2020, 1:38pm UTC](https://discuss.elastic.co/t/how-to-transform-input-before-indexing-document-into-elastic-search/235769 "2020-06-04T13:38:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ajinkya\_Pathrudkar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ajinkya_pathrudkar/32/69709_2.png) [@Ajinkya\_Pathrudkar](https://discuss.elastic.co/u/Ajinkya_Pathrudkar)\
**Post date:** [June 4, 2020, 1:38pm UTC](https://discuss.elastic.co/t/how-to-transform-input-before-indexing-document-into-elastic-search/235769/1 "2020-06-04T13:38:29Z")

</div>

Hi All,

I have requirement, where I want to store the value into property after removing special characters from request. I tried using mapping-transform but its giving mapper\_parsing\_exception.

Is there any way where we can manipulate input before indexing it into elasticsearch?

Thanks,  
Ajinkya

---

<div class="post-metadata">

**Author:** ![A\_B](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a_b/32/17104_2.png) [@A\_B](https://discuss.elastic.co/u/A_B)\
**Post date:** [June 4, 2020, 2:13pm UTC](https://discuss.elastic.co/t/how-to-transform-input-before-indexing-document-into-elastic-search/235769/2 "2020-06-04T14:13:02Z")

</div>

Hi @Ajinkya_Pathrudkar,

as far as I know, you would have to use [Logstash filters](https://www.elastic.co/guide/en/logstash/current/transformation.html) or [Elasticsearch Ingest Pipelines](https://www.elastic.co/guide/en/elasticsearch/reference/current/pipeline.html) for that.

There might be other ways. Those are the ones I know of...

---

<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 2, 2020, 2:13pm UTC](https://discuss.elastic.co/t/how-to-transform-input-before-indexing-document-into-elastic-search/235769/3 "2020-07-02T14:13:13Z")

</div>

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