Sure you can, Use overwrite flag in your update messages, as per http://wiki.apache.org/solr/UpdateXmlMessages Or have a different key (e.g. signature) nominated as your unique key.
The issue is if you just allow duplicates all together, do you want to be able to delete a particular single document, even if there several duplicates of it in the index? Regards, Alex. Personal website: http://www.outerthoughts.com/ LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch - Time is the quality of nature that keeps events from happening all at once. Lately, it doesn't seem to be working. (Anonymous - via GTD book) On Thu, Feb 6, 2014 at 2:27 PM, Anita Nair (UST, IND) <anita.n...@ust-global.com> wrote: > Hi Solr team, > > > > I am trying to look for a solution for indexing multiple text files with the > same unique key, in Lucene. > > Is there a way to do this? > > Saw a posting in the mail archives (below), but I wonder if a solution was > given to the users. > > > > Kindly respond , > > Anita Nair > > ________________________________ > From: Anita Nair (UST, IND) > Sent: Thursday, February 06, 2014 12:38 PM > To: yuryk...@yahoo.com; erickerick...@gmail.com > Subject: Indexing multiple files in Lucene Solr > > > > > Hi Yuri and Erick, > > > > Saw your posting in the Lucene Solr mail archives about trying to index > multiple documents with the same id without having the original document > overwritten. > > https://www.mail-archive.com/solr-user@lucene.apache.org/msg82647.html > > > > As I was adventuring Lucene Solr, I bumped into the same issue. I would like > to know if you got a solution to it finally. Kindly share the solution. > > > > Thanks, > > Anita Nair