I am using 1.3.
I know it is not being executed because I stepped through the code a bit.

It gets here
- main\java\org\apache\solr\handler\dataimport\SQLEntityProcessor.java -
Method - nextModifiedParentRowKey - When there is a modified row in my data
template.

However, when it tries to pull
the context.getEntityAttribute(PARENT_DELTA_QUERY), that call is always
returning null.


2009/5/23 Noble Paul നോബിള്‍ नोब्ळ् <noble.p...@corp.aol.com>

> how do you know it is not being executed ?. use deltaImportQuery also
> if you are  using Solr1.4
>
> On Sat, May 23, 2009 at 4:29 AM, Michael Korthuis
> <michael.korth...@twintechs.com> wrote:
> > I have the data-config.xml detailed below  (Stripped down a bit for
> > simplicity) -
> > When I run the delta import, the design_template delta query is running
> and
> > modified rows are being returned.  However, the parentDeltaQuery is never
> > executed.
> >
> > Any thoughts?
> >
> > Thanks,
> >
> > Micahael
> >
> >
> > <dataConfig>
> > <dataSource type="JdbcDataSource" driver="com.mysql.jdbc.Driver"
> url="URL"
> > user="USER" password="PASSWORD"/>
> >  <document name="catalog_item_doc">
> > <entity name="catalog_item" transformer="script:catalog_item"
> > pk="catalog_item_id"
> >  query="select catalog_item_id,catalog_item_code  from catalog_item"
> > deltaQuery="select catalog_item_id from catalog_item where date_updated >
> > '${dataimporter.last_index_time}'"
> >  deletedPkQuery="select catalog_item_id from catalog_item_delete where
> > date_deleted > '${dataimporter.last_index_time}'"
> >>
> >
> >  <field column="catalog_item_code" name="catalog_item_code" />
> >
> >  <entity name="design_template"  transformer="script:stone_type"
> > id="design_template_id" pk="design_template_id"
> >  query="select name from design_template where
> > design_template_id='${catalog_item.design_template_id_fk}'"
> >  deltaQuery="select design_template_id from design_template where
> > date_updated > '${dataimporter.last_index_time}'"
> > parentDeltaQuery="select catalog_item_id from catalog_item where
> > design_template_id_fk = '${design_template.design_template_id}'"
> >  >
> >
> >  <field column="name" name="name" />
> >
> >  </entity>
> >
> >  </entity>
> >  </document>
> > </dataConfig>
> >
>
>
>
> --
> -----------------------------------------------------
> Noble Paul | Principal Engineer| AOL | http://aol.com
>

Reply via email to