lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Krüger <>
Subject uniqueKey not enforced
Date Mon, 22 Oct 2012 09:56:10 GMT

I noticed a duplicate entry in my index and I am wondering how that
can be, because I have a uniqueKey defined.

I have the following defined in my schema.xml:

<?xml version="1.0" ?>

<schema name="main core" version="1.1">
   <fieldtype name="string"  class="solr.StrField"
sortMissingLast="true" omitNorms="true"/>
.... other field types omitted here ...


  <!-- general -->
  <!-- id computed as a combination of media id and path -->
  <field name="id"   type="string"   indexed="true"  stored="true"
multiValued="false" />
.... other fields omitted here ...


 <!-- field to use to determine and enforce document uniqueness. -->

 <!-- field for the QueryParser to use when an explicit fieldname is absent -->

 <!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
 <solrQueryParser defaultOperator="OR"/>

And now I have two records which both have the value
"4b34b883-a9d9-428a-92c3-ba1a69d96a70:/Düsendrögl" in its id field. Is
it the Non-ASCII chars that cause the uniqueness enforcement to fail?

I am using Solr 3.6.1.

Any ideas what's going on?



View raw message