# De-dot filter to replace dots doesn't work when \_source is disabled

**URL:** <https://discuss.elastic.co/t/de-dot-filter-to-replace-dots-doesnt-work-when--source-is-disabled/55490>\
**Category:** Elasticsearch\
**Created:** [July 14, 2016, 8:37am UTC](https://discuss.elastic.co/t/de-dot-filter-to-replace-dots-doesnt-work-when--source-is-disabled/55490 "2016-07-14T08:37:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SwethaS](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@SwethaS](https://discuss.elastic.co/u/SwethaS)\
**Post date:** [July 14, 2016, 8:37am UTC](https://discuss.elastic.co/t/de-dot-filter-to-replace-dots-doesnt-work-when--source-is-disabled/55490/1 "2016-07-14T08:37:37Z")

</div>

I have indices with field names containing dot in ES 1.0.2. So before upgrading to 2.3.3, i tried using de-dot filter to replace . with \_. But it doesn't work as \_source is disabled. Is there any alternative to de-dot filter when index doesn't have \_source?

An other approach i tried is to use updateIndex API with below script filter, but that too relies on \_source.

> Script(ctx.\_source.first\_Name= ctx.\_source.remove(first.Name))

Is there really no way to replace dot in field names other than building index with new set of mappings again?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 14, 2016, 10:00am UTC](https://discuss.elastic.co/t/de-dot-filter-to-replace-dots-doesnt-work-when--source-is-disabled/55490/2 "2016-07-14T10:00:51Z")

</div>

You can reprocess the original events if you have them.

---

<div class="post-metadata">

**Author:** ![SwethaS](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@SwethaS](https://discuss.elastic.co/u/SwethaS)\
**Post date:** [July 14, 2016, 10:05am UTC](https://discuss.elastic.co/t/de-dot-filter-to-replace-dots-doesnt-work-when--source-is-disabled/55490/3 "2016-07-14T10:05:48Z")

</div>

> [@warkolm](#):
>
> you can reprocess the original events if you have them.

can you please explain in detail? original events as in ?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 14, 2016, 10:06am UTC](https://discuss.elastic.co/t/de-dot-filter-to-replace-dots-doesnt-work-when--source-is-disabled/55490/4 "2016-07-14T10:06:54Z")

</div>

The files you processed them from.

---

<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 5, 2017, 10:35pm UTC](https://discuss.elastic.co/t/de-dot-filter-to-replace-dots-doesnt-work-when--source-is-disabled/55490/5 "2017-07-05T22:35:41Z")

</div>


