Re: Relations between documents

2005-07-25 Thread Chris Lu
Then your lucene Document can be: Survey + n Variables, The idea is just to put everything related to a combined Document, and search on it. -- Chris Lu - Full-Text Search on Any Database http://www.dbsight.net On 7/25/05, Magne Skjeret <[EMAIL PROTECTED]> wrote: > Chris L

RE: Relations between documents

2005-07-25 Thread Rajesh Munavalli
Hi Magne, Assuming number of variables will not be large, build 2 indexes Index 1: contents and documents(variable1 + variable2 + variable3...) Index 2: documents and variables Example Query: Get "Survey" where "Variable.label" contains "gender" Step 1) First query would be to "Index 1

Re: Relations between documents

2005-07-25 Thread Magne Skjeret
Chris Lu wrote: >Maybe you can have one Document = Survey+Variable, >and have fields like "abstract", "label". > >Just search on the combined documents. > > Hi A Survey can have 100's of variables. That means that the Survey part is duplicated N variable times. Or did I misunderstand you? Magn

Re: Relations between documents

2005-07-25 Thread Chris Lu
Maybe you can have one Document = Survey+Variable, and have fields like "abstract", "label". Just search on the combined documents. -- Chris Lu - Full-Text Search on Any Database http://www.dbsight.net On 7/25/05, Magne Skjeret <[EMAIL PROTECTED]> wrote: > Hi > > I have be