Thanks for your quick reply. Here are some notes: 1. Consider that all tables in my example have two columns: Name & Description which I would like to index and search. 2. I have no other reason to create flat table other than for solar. So I would like to see if I can avoid it. 3. If in my example I will have a flat table then obviously it will hold a lot of rows for a single school. By searching the exact school name I will likely receive a lot of rows. (my flat table has its own pk) That is something I would like to avoid and I thought I can avoid this by defining teachers and students as multiple value or something like this and than teacherCourses and studentHobbies as 1:n respectively. This is quite similiar to my real life demand, so I came here to get some tips as a solr noob.
On Mon, Jun 17, 2013 at 9:08 PM, Gora Mohanty <g...@mimirtech.com> wrote: > On 17 June 2013 21:39, Mysurf Mail <stammail...@gmail.com> wrote: > > Hi, > > I have created a flat table from my DB and defined a solr core on it. > > It works excellent so far. > > > > My problem is that my table has two hierarchies. So when flatted it is > too > > big. > > What do you mean by "too big"? Have you actually tried > indexing the data into Solr, and does the performance > not meet your needs, or are you guessing from the size > of the tables? > > > Lets consider the following example scenario > > > > My Tables are > > > > School > > Students (1:n with school) > > Teachers(1:n with school) > [...] > > Um, all of this crucially depends on what your 'n' is. > Plus, you need to describe your use case in much > more detail. At the moment, you are asking us to > guess at what you are trying to do, which is inefficient, > and unlikely to solve your problem. > > Regards, > Gora >