You must have your entities nested like these <entity name="campaign"> <entity name="banner"> <entity name="size"> </entity> </entity> </entity>
banner and size must be multivalued On Thu, Oct 23, 2008 at 11:29 PM, Nick80 <[EMAIL PROTECTED]> wrote: > > I did some more testing and encountered another problem. I have three tables: > campaign, banner and size. A campaign can have multiple banners of different > types (flash, gif, ...). And each type of banner can be of multiple sizes > (50x50, 100x100, ...). So I did the following in data-config.xml > > <entity name="campaign"> > </entity> > > <entity name="banner"> > <entity name="size"> > </entity> > </entity> > > I nested the size data inside the banner data, because I want to do the > following search: which campaign has a banner of type flash with a size of > 50x50. > > But once I load the data in Solr, I get: > > campaign > banner_array > size_array > > The size is not associated with the correct banner, all the data is just > flattened. So the search I intended to do, is not possible. How can I change > my thinking, so that I'm able to search for which campaign has a banner of > type flash with a size of 50x50? Thanks. > > Kind regards, > > Nick > -- > View this message in context: > http://www.nabble.com/How-to-search-a-DataImportHandler-solr-index-tp20120698p20136424.html > Sent from the Solr - User mailing list archive at Nabble.com. > > -- --Noble Paul