# Computed fields plugin

**URL:** <https://discuss.elastic.co/t/computed-fields-plugin/14331>\
**Category:** Elasticsearch\
**Created:** [November 8, 2013, 7:33pm UTC](https://discuss.elastic.co/t/computed-fields-plugin/14331 "2013-11-08T19:33:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karol\_Gwaj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karol_gwaj/32/1324_2.png) [@Karol\_Gwaj](https://discuss.elastic.co/u/Karol_Gwaj)\
**Post date:** [November 8, 2013, 7:33pm UTC](https://discuss.elastic.co/t/computed-fields-plugin/14331/1 "2013-11-08T19:33:20Z")

</div>

Hi,

I want to create plugin that will add support for computed fields  
im quite new to elasticsearch, so i will gladly use some advice on what is  
the best way to approach it  
from quickly eyeballing elasticsearch code i see 2 ways:

- creating custom field mapper
- modifying source document on preIndex event (IndexingOperationListener)

any suggestion will be very appreciated  
(also if there is already plugin that can do that, this will be my favorite  
suggestion 🙂 )

Thx,

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:08am UTC](https://discuss.elastic.co/t/computed-fields-plugin/14331/2 "2017-07-06T02:08:03Z")

</div>


