# River-mongodb and doctrine connections

**URL:** <https://discuss.elastic.co/t/river-mongodb-and-doctrine-connections/14695>\
**Category:** Elasticsearch\
**Created:** [December 4, 2013, 8:31am UTC](https://discuss.elastic.co/t/river-mongodb-and-doctrine-connections/14695 "2013-12-04T08:31:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![11138](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/11138/32/1936_2.png) [@11138](https://discuss.elastic.co/u/11138)\
**Post date:** [December 4, 2013, 8:31am UTC](https://discuss.elastic.co/t/river-mongodb-and-doctrine-connections/14695/1 "2013-12-04T08:31:12Z")

</div>

Hello guys! I`m need create index Product collection, wich has  
the following structure:

{  
"\_id": ObjectId("5239656f60663de206b1053e"),  
"category": {  
"$ref": "Category",  
"$id": ObjectId("50cb515760663d3577000043"),  
"$db": ""  
},  
"name": ""  
}  
Field 'category' is link to another row from Category collection, I need  
create an index, which would have the following structure:  
{  
"\_id": "",  
"name": "",  
"category": ""  
}  
That is i get productName from Product collection and categoryName from  
Category collection. Any idea?

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/13421f92-3e23-416a-9f4b-20106aa5f9d3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/13421f92-3e23-416a-9f4b-20106aa5f9d3%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Richard\_Louapre](https://avatars.discourse-cdn.com/v4/letter/r/e19adc/32.png) [@Richard\_Louapre](https://discuss.elastic.co/u/Richard_Louapre)\
**Post date:** [December 7, 2013, 6:07am UTC](https://discuss.elastic.co/t/river-mongodb-and-doctrine-connections/14695/2 "2013-12-07T06:07:13Z")

</div>

The river support parent / child. See [1] and [2].

[1] -

> <https://github.com/richardwilly98/elasticsearch-river-mongodb/issues/64>
>
> how to parent mapping and index ?
> PLZ

[2] -

> <https://github.com/richardwilly98/elasticsearch-river-mongodb/tree/master/manual-testing/issues/64>
>
> //github.com/richardwilly98/elasticsearch-river-mongodb/tree/master/manual-testing/issues/64

On Wednesday, December 4, 2013 3:31:12 AM UTC-5, Игорь Парамонов wrote:

> Hello guys! I`m need create index Product collection, wich has  
> the following structure:
> 
> {  
> "\_id": ObjectId("5239656f60663de206b1053e"),  
> "category": {  
> "$ref": "Category",  
> "$id": ObjectId("50cb515760663d3577000043"),  
> "$db": ""  
> },  
> "name": ""  
> }  
> Field 'category' is link to another row from Category collection, I need  
> create an index, which would have the following structure:  
> {  
> "\_id": "",  
> "name": "",  
> "category": ""  
> }  
> That is i get productName from Product collection and categoryName from  
> Category collection. Any idea?

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/f5f78764-ab05-4bb1-829a-ccdea33afcfc%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f5f78764-ab05-4bb1-829a-ccdea33afcfc%40googlegroups.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:02am UTC](https://discuss.elastic.co/t/river-mongodb-and-doctrine-connections/14695/3 "2017-07-06T02:02:45Z")

</div>


