I am having the same issue. . Here is my schema.xml entries:

 <field name="id" type="string" indexed="true" stored="true" 
multiValued="false" required="true"/>
 <uniqueKey>id</uniqueKey>

I am using EmbeddedSolr instructions from the current wiki page and setting
the following for my AddUpdateCommand:

      AddUpdateCommand addcmd = new AddUpdateCommand();
      addcmd.allowDups = false;
      addcmd.overwritePending = true;
      addcmd.overwriteCommitted = true;

Thanks!


ryantxu wrote:
> 
>> 
>> Schema.xml
>>  <field name="id" type="string" indexed="true" stored="true"/>
> 
> Have you edited schema.xml since building a full index from scratch?  If 
> so, try rebuilding the index.
> 
> People often get the behavior you describe if the 'id' is a 'text' field.
> 
> ryan
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/SOLR-1.2---Duplicate-Documents---tp13621332p14531206.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to