lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon <sim...@gallerysystems.com>
Subject Duplicate Unique Key
Date Mon, 07 Apr 2014 15:50:54 GMT
Hi all,

I know someone has posted similar question before.  But my case is little
different as I don't have the schema set up issue mentioned in those posts
but still get duplicate records.

My unique key in schema is 

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

    
    <uniqueKey>id$</uniqueKey>



Search on Solr- admin UI:   id$:1

I got two documents
{
       "id$": "1",
       "_version_": 1464225014071951400,
        "_root_": 1
},
{
        "id$": "1",
        "_version_": 1464236728284872700,
        "_root_": 1
}

I use SolrJ api to add documents.  My understanding solr uniqueKey is like a
database primary key. I am wondering how could I end up with two documents
with same uniqueKey in the index.

Thanks,
Simon




--
View this message in context: http://lucene.472066.n3.nabble.com/Duplicate-Unique-Key-tp4129651.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message