> You're trying to use a feature that
> was removed from trunk/4x by SOLR-2796:
> "AddUpdateCommand.getIndexedId doesn't work with schema
> configured defaults/copyField - UUIDField/copyField can not
> be used as uniqueKey field."
> 
> See:
> https://issues.apache.org/jira/browse/SOLR-2796
> 
> This revision:
> http://svn.apache.org/viewvc?view=revision&revision=1345378
> 
> Evidently the wiki was not corrected to note that the
> "feature" was removed.

Thanks Jack that was helpful!
So in order to use uuid as uniqueKey update processor chain is the way to go. 
There are two ways to do it.

1) <field name="uniqueKey" type="uuid" indexed="true" stored="true" 
required="true" />

   <updateRequestProcessorChain name="default-values">
    <processor class="solr.DefaultValueUpdateProcessorFactory">
      <str name="fieldName">uniqueKey</str>
      <str name="value">NEW</str>
    </processor>    
  <processor class="solr.RunUpdateProcessorFactory" />
  </updateRequestProcessorChain>

2) <field name="uniqueKey" type="string" indexed="true" stored="true" 
required="true" />  
   <updateRequestProcessorChain name="uuid">    
    <processor class="solr.UUIDUpdateProcessorFactory">
      <str name="fieldName">uniqueKey</str>
    </processor>    
    <processor class="solr.RunUpdateProcessorFactory" />
  </updateRequestProcessorChain>

correct? I will try to update the wiki.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to