And, are you using UUID's or providing specific key values?
-- Jack Krupansky
-----Original Message-----
From: Robert Krüger
Sent: Monday, October 22, 2012 9:22 AM
To: solr-user@lucene.apache.org
Subject: Re: uniqueKey not enforced
On Mon, Oct 22, 2012 at 2:08 PM, Jack Krupansky <j...@basetechnology.com>
wrote:
Which release of Solr?
3.6.1
Is this a single node Solr or distributed or cloud?
single node, actually embedded in an application.
Is is possible that you added documents with the "overwrite="false""
attribute? That would suppress the uniqueness test.
no, I just used SolrServer.add(Collection<SolrInputDocument> docs)
Is it possible that you added those documents before adding the uniqueKey
element to your schema, or added uniqueKey but did not restart Solr before
adding those documents?
no, the element has been there for months, the index has been created
from scratch just before the test
One minor difference from the Solr example schema is that your id field
does
not have "required="true"". I don't think that should matter (Solr will
force the uniqueKey field to be required in documents), but I am curious
how
you managed to get an id field different from the Solr example.
so am I ;-). I will add the required attribute, though. It cannot hurt.