# ElasticSerach java client or ElasticSerach java plugin for enrich all document at index time?

**URL:** <https://discuss.elastic.co/t/elasticserach-java-client-or-elasticserach-java-plugin-for-enrich-all-document-at-index-time/14169>\
**Category:** Elasticsearch\
**Created:** [October 30, 2013, 10:54am UTC](https://discuss.elastic.co/t/elasticserach-java-client-or-elasticserach-java-plugin-for-enrich-all-document-at-index-time/14169 "2013-10-30T10:54:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefano\_ruggiero](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@stefano\_ruggiero](https://discuss.elastic.co/u/stefano_ruggiero)\
**Post date:** [October 30, 2013, 10:54am UTC](https://discuss.elastic.co/t/elasticserach-java-client-or-elasticserach-java-plugin-for-enrich-all-document-at-index-time/14169/1 "2013-10-30T10:54:05Z")

</div>

hi all,

iam trying to create a new custom node or plugin that listen to all stream  
of data in ES cluster and then if a particular document satisfy my  
condition add a specific field or something similar. How is the best  
approach? there are some sort of examples?

i try to explain better what is my goal:

1. i would like to have a document parser job inside the ES input data  
stream.
2. i would like to chose if that document has a particular sintax then if  
yes add custom field or better invoke an other class that store some  
information over the time.
3. doing this in async way, i mean dont stop the indexing process but only  
read and parse document while indexing.

have you some suggestions on where to start ?

iam at very initial point on decide if it is better to create a plugin or  
this can be done with java Client API given from ES. ( i expect that there  
will be an ovveride action like onParse(parse doc) that let me read all the  
flow of data.. )

Thanks for all your time and attention, i will appreciate all type of help.

Regards.

--  
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:09am UTC](https://discuss.elastic.co/t/elasticserach-java-client-or-elasticserach-java-plugin-for-enrich-all-document-at-index-time/14169/2 "2017-07-06T02:09:51Z")

</div>


