# Re: Rename index field name while using mongo river

**URL:** https://discuss.elastic.co/t/re-rename-index-field-name-while-using-mongo-river/9879
**Category:** Elasticsearch
**Created:** [November 29, 2012, 9:43am UTC](https://discuss.elastic.co/t/re-rename-index-field-name-while-using-mongo-river/9879 "2012-11-29T09:43:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Matt\_Preston](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_preston/32/1626_2.png) [@Matt\_Preston](https://discuss.elastic.co/u/Matt_Preston)
#### Post date: [November 29, 2012, 9:43am UTC](https://discuss.elastic.co/t/re-rename-index-field-name-while-using-mongo-river/9879/1 "2012-11-29T09:43:58Z")

</div>

Hi,

there is a fork of the mongo river project that adds this feature:

> **[GitHub - gustavocoding/elasticsearch-river-mongodb: MongoDB River Plugin for...](https://github.com/gustavocoding/elasticsearch-river-mongodb)**
>
> MongoDB River Plugin for ElasticSearch. Contribute to gustavocoding/elasticsearch-river-mongodb development by creating an account on GitHub.

Mapping capabilities are described in the documentation.

Matt

On Thursday, 29 November 2012 01:57:09 UTC, spancer ray wrote:

> Hi Guys,
> 
> I'm using mongo river plugin, I want to known whether ES or mongo river  
> has  
> some functionality so that I can rename my field name without keeping it  
> the  
> same with mongo collection fields' name.
> 
> Assume that we have mongo colleciton 'user', which has two fields  
> 'user\_name', 'user\_address'. While using river, we have to mapping this  
> two  
> fields like this:
> 
> I have to keep the mapping properties names the same as that in mongo  
> collection to make the river runs well. Is there any settings I can use so  
> that I can name the index field names' like 'username' and 'useraddress' ?
> 
> Anybody faces this kind of requirement/problem?
> 
> Thanks,  
> Spancer
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/Rename-index-field-name-while-using-mongo-river-tp4026203.html](http://elasticsearch-users.115913.n3.nabble.com/Rename-index-field-name-while-using-mongo-river-tp4026203.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

--

---

<div class="post-metadata">

### Author: ![spancer\_ray](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spancer_ray/32/76303_2.png) [@spancer\_ray](https://discuss.elastic.co/u/spancer_ray)
#### Post date: [December 3, 2012, 3:43am UTC](https://discuss.elastic.co/t/re-rename-index-field-name-while-using-mongo-river/9879/2 "2012-12-03T03:43:19Z")

</div>

Hi Matt,

Thank you so much for the reply:-)

Wishes,  
Spancer

---

<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, 3:01am UTC](https://discuss.elastic.co/t/re-rename-index-field-name-while-using-mongo-river/9879/3 "2017-07-06T03:01:49Z")

</div>


