Hello Tomas,

I guess you could just specify overwrite=false
http://wiki.apache.org/solr/UpdateXmlMessages#Optional_attributes_for_.22add.22


On Fri, Mar 2, 2012 at 11:23 PM, Thomas Dowling <tdowl...@ohiolink.edu>wrote:

> In a Solr index of journal articles, I thought I was safe reindexing
> articles because their unique ID would cause the new record in the index to
> overwrite the old one. (As stated at http://wiki.apache.org/solr/**
> SchemaXml#The_Unique_Key_Field<http://wiki.apache.org/solr/SchemaXml#The_Unique_Key_Field>-
>  right?)
>
> My schema.xml includes:
>
> <fields>...
> <field name="id" type="string" indexed="true" stored="true"
>  required="true"/>
> ...</fields>
>
> And:
>
> <uniqueKey>id</uniqueKey>
>
> And yet I can compose a query with two hits in the index, showing:
>
> #1: <str name="id">03405443/v66i0003/**347_mrirtaitmbpa</str>
> #2: <str name="id">03405443/v66i0003/**347_mrirtaitmbpa</str>
>
>
> Can anyone give pointers on where I'm screwing something up?
>
>
> Thomas Dowling
> thomas.dowl...@gmail.com
>



-- 
Sincerely yours
Mikhail Khludnev
Lucid Certified
Apache Lucene/Solr Developer
Grid Dynamics

<http://www.griddynamics.com>
 <mkhlud...@griddynamics.com>

Reply via email to