Re: How to do ? Articles and Its Associated Comments Indexing , One to Many relationship

2010-08-26 Thread Erick Erickson
See below... On Thu, Aug 26, 2010 at 4:31 AM, Sumit Arora wrote: > Thanks Ephraim for your response. > > If I use MultiValued for Comments Field then While Picking data from Solr, > Should I use following Logic : > > /* Sample PseudoCode */ > > Get Rows from Article and Article-Comments Table ;

Re: How to do ? Articles and Its Associated Comments Indexing , One to Many relationship

2010-08-26 Thread Sumit Arora
Thanks Ephraim for your response. If I use MultiValued for Comments Field then While Picking data from Solr, Should I use following Logic : /* Sample PseudoCode */ Get Rows from Article and Article-Comments Table ; *// It will retrieve - 1 Article and 20 Comments* Begin; Include 'Article Fie

RE: How to do ? Articles and Its Associated Comments Indexing , One to Many relationship

2010-08-26 Thread Ephraim Ofir
Why not define the comment field as multiValued? That way you only index each document once and you don't need to collapse anything... Ephraim Ofir -Original Message- From: Sumit Arora [mailto:sumit1...@gmail.com] Sent: Thursday, August 26, 2010 12:54 PM To: solr-user@lucene.apache.org