You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Martin Davidsson <ma...@gmail.com> on 2009/05/06 21:03:13 UTC
deltaImportQuery in child entity
Hello, I have a data-config.xml that is structured in the following
fashion:
<document>
<entity name="parent" query="fullParentQuery"
deltaImportQuery="deltaParentImportQuery" deltaQuery="deltaParentQuery">
<entity name="child" query="fullChildQuery"
deltaImportQuery="deltaChildImportQuery" />
</entity>
</document>
Is the deltaImportQuery attribute even allowed on the child entity?
The behavior I'm seeing is that when I issue a delta-import command,
Solr uses the deltaParentImportQuery and deltaParentQuery from the
parent entity but the fullChildQuery from the child entity. I was
hoping it would use the deltaChildImportQuery on the child entity to
figure out what data to use in the case of a delta-import. Is the
behavior I'm seeing expected? Is it possible to write data-config.xml
in a way that I can use different queries to pull in the field data
for a child entity depending on whether I'm doing a full- or delta-
import? I'm using the nightly build from March 24, 2009. Thanks!
-- Martin Davidsson
Re: deltaImportQuery in child entity
Posted by Noble Paul നോബിള് नोब्ळ् <no...@corp.aol.com>.
yeah the behavior you are observing is right. Now I have second
thoughts on how it should be. I guess , if the deltaImportQuery is
present in a child entity it should be used. you can open an issue
--Noble
On Thu, May 7, 2009 at 12:33 AM, Martin Davidsson
<ma...@gmail.com> wrote:
> Hello, I have a data-config.xml that is structured in the following fashion:
>
> <document>
> <entity name="parent" query="fullParentQuery"
> deltaImportQuery="deltaParentImportQuery" deltaQuery="deltaParentQuery">
> <entity name="child" query="fullChildQuery"
> deltaImportQuery="deltaChildImportQuery" />
> </entity>
> </document>
>
> Is the deltaImportQuery attribute even allowed on the child entity? The
> behavior I'm seeing is that when I issue a delta-import command, Solr uses
> the deltaParentImportQuery and deltaParentQuery from the parent entity but
> the fullChildQuery from the child entity. I was hoping it would use the
> deltaChildImportQuery on the child entity to figure out what data to use in
> the case of a delta-import. Is the behavior I'm seeing expected? Is it
> possible to write data-config.xml in a way that I can use different queries
> to pull in the field data for a child entity depending on whether I'm doing
> a full- or delta-import? I'm using the nightly build from March 24, 2009.
> Thanks!
>
> -- Martin Davidsson
>
--
-----------------------------------------------------
Noble Paul | Principal Engineer| AOL | http://aol.com