my understanding is nested objects (including nested filter and join) also doesnt help in this regard , correct me if am wrong
On Wednesday, 14 January 2015 14:31:22 UTC-5, Ed Kim wrote: > > I'm not sure if you can fetch both parent/child. You can certainly try by > querying against the entire index (and therefore querying against your > parent/child types), but we've never had any success with this. What we did > to get around this was to denormalize the child documents, and let the > parent be used only for matching purposes. > > On Wednesday, January 14, 2015 at 7:36:38 AM UTC-8, buddarapu nagaraju > wrote: >> >> If some one has some ideas please let me know >> >> On Wednesday, 14 January 2015 04:16:00 UTC-5, buddarapu nagaraju wrote: >>> >>> All I will be knowing in API request is bool params to know whether to >>> get family docs or not and query that user entered so I need to construct >>> query that gets all family documents for qualified documents for given >>> query if bool param is true and another query that just get the qualified >>> documents >>> >>> On Wednesday, 14 January 2015 01:51:47 UTC-5, buddarapu nagaraju wrote: >>>> >>>> Hi, >>>> I have question on document relations >>>> >>>> one document can have multiple child's. and now I have to address below >>>> searches and achieve the mentioned expected results . >>>> >>>> 1) >>>> search on any child documents(meaning have a query that qualifies child >>>> documents) and retrieve the child ,parent and all of the child's of the >>>> parents >>>> >>>> 2) >>>> >>>> search on any parent documents and retrieve parent and all of the child >>>> documents >>>> >>>> 3) search on any parent documents and just retrieve only qualified >>>> parent documents >>>> >>>> 4) search on any child documents and just retrieve only qualified child >>>> documents >>>> >>>> Is there any existing feature that help in achieving this ? any ideas >>>> /thoughts would be very useful ? >>>> also please provide some sample code if possible >>>> >>> -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9c45f125-bea8-4767-8eb5-69d7e5329972%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
