Hi,

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">
  <types>
   <fieldtype name="string"  class="solr.StrField"
sortMissingLast="true" omitNorms="true"/>
.... other field types omitted here ...
   </fieldType>

  </types>

 <fields>
  <!-- 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 ...

 </fields>

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

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

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

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?

Thanks,

Robert

Reply via email to