Re: nested data structure definition
On Mon, 28 Jul 2008 23:37:22 -0700 (PDT) matt connolly <[EMAIL PROTECTED]> wrote: > In my site, I have a document, which may have multiple comments. > > For each comment, I would like to know several pieces of information, like: > text, author, and date. Matt, please read the documentation about dynamic field definitions - as it has been mentioned already in this thread, it may be the way to approach this problem. If after doing this and thinking hard about it, you have any questions, please ask again in the list. B _ {Beto|Norberto|Numard} Meijome "Everything should be made as simple as possible, but not simpler." Albert Einstein I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned.
Re: nested data structure definition
In my site, I have a document, which may have multiple comments. For each comment, I would like to know several pieces of information, like: text, author, and date. -Matt Shalin Shekhar Mangar wrote: > > Hi Ranjeet, > > Solr supports multi-valued fields and you can always denormalize your > data. > Can you give more details on the problem you are trying to solve? > > On Mon, Jul 28, 2008 at 3:20 PM, Ranjeet > <[EMAIL PROTECTED]>wrote: > >> Hi, >> >> Can we defined nested data structure in schema.xml for searching? is it >> prossible or not? >> > -- View this message in context: http://www.nabble.com/nested-data-structure-definition-tp18687164p18706307.html Sent from the Solr - User mailing list archive at Nabble.com.
RE: nested data structure definition
If you want to think of Solr in database terms, it has only one table. The fields in this table have very flexible type definitions. There can be many optional fields. They also can have various indexes which used together can search text in useful ways. If you want to model multiple tables, you have to denormalize them into one. The optional fields feature can be useful here. Lance -Original Message- From: Ranjeet [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2008 3:48 AM To: solr-user@lucene.apache.org Subject: Re: nested data structure definition Hi, In our case there is Category object under Catalog object, so I do not want to defined the data structure for the Category. I want to give the reference of Category uder Catalog, how can I do this. Regards, Ranjeet - Original Message - From: "Shalin Shekhar Mangar" <[EMAIL PROTECTED]> To: Sent: Monday, July 28, 2008 3:55 PM Subject: Re: nested data structure definition > Hi Ranjeet, > > Solr supports multi-valued fields and you can always denormalize your > data. > Can you give more details on the problem you are trying to solve? > > On Mon, Jul 28, 2008 at 3:20 PM, Ranjeet > <[EMAIL PROTECTED]>wrote: > >> Hi, >> >> Can we defined nested data structure in schema.xml for searching? is it >> prossible or not? >> >> >> >> Thanks & Regards, >> Ranjeet Jha > > > > > -- > Regards, > Shalin Shekhar Mangar. >
Re: nested data structure definition
Hi, In Solr there is no hierarchy of objects. De-normalize everything into one schema using multi-valued fields where applicable. Decide on what the document should be. What do you want to return as individual results -- are they catalogs or categories? You can get more help if you give an example of what you are trying to achieve. On Mon, Jul 28, 2008 at 4:18 PM, Ranjeet <[EMAIL PROTECTED]>wrote: > Hi, > > In our case there is Category object under Catalog object, so I do not want > to defined the data structure for the Category. I want to give the reference > of Category uder Catalog, how can I do this. > > > Regards, > Ranjeet > - Original Message - From: "Shalin Shekhar Mangar" < > [EMAIL PROTECTED]> > To: > Sent: Monday, July 28, 2008 3:55 PM > Subject: Re: nested data structure definition > > > > Hi Ranjeet, >> >> Solr supports multi-valued fields and you can always denormalize your >> data. >> Can you give more details on the problem you are trying to solve? >> >> On Mon, Jul 28, 2008 at 3:20 PM, Ranjeet <[EMAIL PROTECTED] >> >wrote: >> >> Hi, >>> >>> Can we defined nested data structure in schema.xml for searching? is it >>> prossible or not? >>> >>> >>> >>> Thanks & Regards, >>> Ranjeet Jha >>> >> >> >> >> >> -- >> Regards, >> Shalin Shekhar Mangar. >> >> > -- Regards, Shalin Shekhar Mangar.
Re: nested data structure definition
Hi, In our case there is Category object under Catalog object, so I do not want to defined the data structure for the Category. I want to give the reference of Category uder Catalog, how can I do this. Regards, Ranjeet - Original Message - From: "Shalin Shekhar Mangar" <[EMAIL PROTECTED]> To: Sent: Monday, July 28, 2008 3:55 PM Subject: Re: nested data structure definition Hi Ranjeet, Solr supports multi-valued fields and you can always denormalize your data. Can you give more details on the problem you are trying to solve? On Mon, Jul 28, 2008 at 3:20 PM, Ranjeet <[EMAIL PROTECTED]>wrote: Hi, Can we defined nested data structure in schema.xml for searching? is it prossible or not? Thanks & Regards, Ranjeet Jha -- Regards, Shalin Shekhar Mangar.
Re: nested data structure definition
Hi Ranjeet, Solr supports multi-valued fields and you can always denormalize your data. Can you give more details on the problem you are trying to solve? On Mon, Jul 28, 2008 at 3:20 PM, Ranjeet <[EMAIL PROTECTED]>wrote: > Hi, > > Can we defined nested data structure in schema.xml for searching? is it > prossible or not? > > > > Thanks & Regards, > Ranjeet Jha -- Regards, Shalin Shekhar Mangar.
nested data structure definition
Hi, Can we defined nested data structure in schema.xml for searching? is it prossible or not? Thanks & Regards, Ranjeet Jha