Re: Index relational XML with DataImportHandler

2012-07-22 Thread Tobias Berg
Ok, problem found by digging in the source code. If it is a bug or "works by design" I don't know but the reason is when the translation of the vaiable ${store.id} is made. The translation is made in the method initXpathReader() with these lines: > String xpath = field.get(XPATH); >

Re: Index relational XML with DataImportHandler

2012-07-22 Thread Tobias Berg
The articleId field is the only field in the correlation file so I just need to get that one working. I tried butting the condition in the forEach secion. If I hardcode a value, like 0104, it works but it doesn't work with the variable. Haven't looked at the sourcecode yet but maybe forEach doesn'

Re: Index relational XML with DataImportHandler

2012-07-22 Thread Alexandre Rafalovitch
I am still struggling with nested DIH myself, but I notice that your correlation condition is on the field level (@StoreId='${store.id}). Were you planning to repeat it for each field definition? Have you tried putting it instead in the forEach section? Alternatively, maybe you need to use $skipD

Re: Index relational XML with DataImportHandler

2012-07-22 Thread Tobias Berg
My uniqeKey in scema.xml is id. I've tried adding pk="id" to the store entity but it makes no difference. The result is the same if I set rootEntity="false" on the store entity. However I added debug and verbose output to the dataimporthandler and I noticed a slight change in how the nested querie

Re: Index relational XML with DataImportHandler

2012-07-22 Thread Ahmet Arslan
> I'm trying to index a set of stores and their articles. I > have two > XML-files, one that contains the data of the stores and one > that contains > articles for each store. I'm using DIH with > XPathEntityProcessor to process > the file containing the store, and using a nested entity I > try to