# Selective Field Importing with River

**URL:** <https://discuss.elastic.co/t/selective-field-importing-with-river/12321>\
**Category:** Elasticsearch\
**Created:** [June 7, 2013, 7:59pm UTC](https://discuss.elastic.co/t/selective-field-importing-with-river/12321 "2013-06-07T19:59:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mblodnick](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@mblodnick](https://discuss.elastic.co/u/mblodnick)\
**Post date:** [June 7, 2013, 7:59pm UTC](https://discuss.elastic.co/t/selective-field-importing-with-river/12321/1 "2013-06-07T19:59:22Z")

</div>

I am currently using ElasticSearch to search through data stored in a  
mongo db. However I have come across an issue that I seem to be stuck on. I  
am using a river to build indices from my database, I want to exclude some  
data from being stored into the JSON document. I have some security  
sensitive information that I would prefer not to have on my server.

In fact, it would be more beneficial if I could just list the data fields  
that I want to be included and stored into the JSON document while still  
using a mongo db river-plugin. Please share any guidance you have on this  
problem.

Any advice is appreciated

--  
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:32am UTC](https://discuss.elastic.co/t/selective-field-importing-with-river/12321/2 "2017-07-06T02:32:16Z")

</div>


