Playing a bit with this dataconfig I get two different results If thk is defined in the schema.xml I get all the values for it indexed but the subentity thematization_keys is not processed.
In the other hand , if I do not define thk in the schema.xml file only the last value for thk is stored and then the thematization_keys is processed for that value. -----Original Message----- From: Alexandre Rafalovitch [mailto:arafa...@gmail.com] Sent: Wednesday, 30 de April de 2014 12:35 To: solr-user@lucene.apache.org Subject: Re: Problem indexing subentitienties from a multivalued field This is a little complicated. What are you getting now with this setup? Is everything else actually working? I would have thought that even --dataSource="null"-- would cause issues. Regards, Alex. Personal website: http://www.outerthoughts.com/ Current project: http://www.solr-start.com/ - Accelerating your Solr proficiency On Wed, Apr 30, 2014 at 4:48 PM, Jordi Martin <jordi.mar...@indicator.es> wrote: > Hi there > > I have a problem trying to create subentities during the data import. > > I have defined the following data-config > > <entity name="efl" processor="FileListEntityProcessor" > baseDir="/path/" fileName=".*.xml$" recursive="false" rootEntity="false" > dataSource="null"> <entity name="subefl" dataSource="ds-3" pk="id" > processor="XPathEntityProcessor" forEach="/export/doc_debur" > transformer="DateFormatTransformer,RegexTransformer" > url="${efl.fileAbsolutePath}" stream="true" onError="skip" > > ... > ... > ... > <field column="thk" > xpath="/export/doc_debur/thematization_keys" /> > <entity dataSource="ds-1" > name="thematization_keys" query="select tmid as thematization_keys > from thematization where tmid='${subefl.thk}' " /> > > ... > ... > </entity> > <enity> > > Thk is a multivalued string field > And thematization_keys is also defined as a multivalued string field > > What I want is to make a query for each one of the values of thk and > store all the results in the thematizations_keys field > > Could anyone help me? > > Thanks in advance > Jordi >