Lucene is not a database. You'll need to flatten the data and yes, that does mean duplication.
-- Ian. On Mon, Nov 23, 2009 at 9:05 AM, sameerpatil <nabblegm...@gmail.com> wrote: > > Hi, > > I have a requirement where I have a list of Suppliers(documents for lucene > index) and a list of Products(documents again). Each Product has a supplier. > e.g. : > Product -> RouterX, Supplier -> DLink, Netgear > Product -> RouterY, Supplier -> Cisco > > If I search for Cisco, RouterY should show up. If I implement the supplier > as a Field in the Document - Router, I will have to update all the Products > if the name of a Supplier changes. > > Can I not just link the field - supplier in Product to the Supplier somehow > rather than duplicating ?? > > -thanks > -- > View this message in context: > http://old.nabble.com/Linking-Fields-to-Documents-possible--tp26474610p26474610.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org