Hi Bilgin It's right I have the same primary key, but testing with the property "preImportDeleteQuery" into the tag entity of the data_config.xml. So now it is working in fact it deletes only the indexs/docs for which I make the full-import based on the field I decleare for the preImportDeleteQuery.
Thanks for your time. -----Original Message----- From: Bilgin Ibryam [mailto:bibr...@gmail.com] Sent: mercoledì 14 luglio 2010 14.46 To: solr-user@lucene.apache.org Subject: Re: DataImporter Is it possible that you have the same IDs in both entities? Could you show here your entity mappings? Bilgin Ibryam On Wed, Jul 14, 2010 at 11:48 AM, Amdebirhan, Samson, VF-Group < samson.amdebir...@vodafone.com> wrote: > Hi all, > > > > Can someone help me in this ? > > > > Importing 2 different entities one by one (specifying through the entity > parameter) why is the second import deleting the previous created index > for first entity and vice-versa? > > > > The documentation provided by the solr website reports that : > > > > "entity : Name of an entity directly under the <document> tag. Use this > to execute one or more entities selectively. Multiple 'entity' > parameters can be passed on to run multiple entities at once. If nothing > is passed , all entities are executed". > > > > The problem results the deletion of index already present for other > entities. > > > > > > Regards. > > Sam > > > > > > > >