You must get your head out of the RDBMS world when using lucene <G>. There's nothing in Lucene that expresses relationships like a db. The usual solution is to de-normalize your database at index time so you can do reasonably simple searches that express your desired relationship...
Best Erick On Tue, Sep 9, 2008 at 7:10 AM, lilalfyalien <[EMAIL PROTECTED]> wrote: > > Hi, > > I think I have a very easy question to answer (I am a Lucene beginner and > like it very much!): I have built lucene documents and indexes from a > dataset from a relational database. I have the table Entities and the table > Products. Each product has one entity and Entities therefore can have > multiple products. I want my user to be able to search Entity-level > attributes but get the product level data back. Is the only way to do this > to put all the Entity level data in the same document as the product or can > you establish relationships between documents using queries? > > Thanks you for reading this and thansk for any help in advance! > > Lilalfyalien > -- > View this message in context: > http://www.nabble.com/Building-Relationships-between-documents--tp19390096p19390096.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >