Re: searching on nested docs - geting back the nested docs as a response

2014-06-20 Thread liorg
ttps://twitter.com/synhershko> > Freelance Developer & Consultant > Author of RavenDB in Action <http://manning.com/synhershko/> > > > On Thu, Jun 19, 2014 at 10:13 PM, liorg > > wrote: > >> Well, assuming we have a book type. the book holds a lot of metad

Re: searching on nested docs - geting back the nested docs as a response

2014-06-19 Thread liorg
rsday, June 19, 2014 7:22:13 PM UTC+3, Itamar Syn-Hershko wrote: > > This is usually something that's being solved using parent-child, but the > question here really is what do you mean by needing to retrieve both books > & pages. > > Can you describe the actual scenario and

searching on nested docs - geting back the nested docs as a response

2014-06-19 Thread liorg
Hi, we have somehow a complex type holding some nested docs with arrays (lets assume an hierarchy of books and for each book we have an array of pages containing its metadata). we want to search for the nested doc - search for all the books that have the term "XYZ" in one of their pages - but