River-mongodb and doctrine connections


(Игорь Парамонов) #1

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.
To view this discussion on the web visit 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.


(Richard Louapre) #2

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

[1] -


[2] -
https://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.
To view this discussion on the web visit 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.


(system) #3