lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gupta, Saurabh " <>
Subject RE: Child entity not getting index using DIH
Date Mon, 30 Nov 2009 15:26:58 GMT

Thanks for your suggestion. A few questions though:

1. Are Mutli-valued fields essential to denormalizing the database in indexes?
2. What is the role of <documents> tag in data-config xml file?
3. How does SolrJ or any other framework convert the returned results back into an object


-----Original Message-----
From: Shalin Shekhar Mangar []
Sent: Monday, November 30, 2009 12:44 AM
Subject: Re: Child entity not getting index using DIH

On Mon, Nov 30, 2009 at 8:17 AM, Gupta, Saurabh <>wrote:

> Hi,
> I am using Solr to index two database tables with a very simple
> relationship.
> Table 1: PRODUCT has ID as PK
> Table 2: VERSION has ID as PK and PRODUCT_ID as PK
> There is a 1:m relationship between PRODUCT AND VERSION.
> When I run full-import, for some reason only 1 row in VERSION table is
> indexed per PRODUCT row. I am attaching the data-config here.
A Solr document is flat - it does not have any nested rows. Your
productVersion* fields must be multi-valued otherwise the last row from product_version table
will overwrite the previous rows.

Shalin Shekhar Mangar.

View raw message