The UniqueKey wiki was recently updated to indicate this new Solr 4.0 requirement:

http://wiki.apache.org/solr/UniqueKey

"in Solr 4, this field must be populated via solr.UUIDUpdateProcessorFactory"

The changes you were given are contained on that updated wiki page.

-- Jack Krupansky

-----Original Message----- From: Dotan Cohen
Sent: Wednesday, September 12, 2012 10:43 AM
To: solr-user@lucene.apache.org
Subject: Re: Solr unique key can't be blank

On Wed, Sep 12, 2012 at 5:27 PM, Ahmet Arslan <iori...@yahoo.com> wrote:
Hi Dotan,

Did you define the following update processor chain in solrconfig.xml ?
And did you reference it in an update handler?

<updateRequestProcessorChain name="uuid">
    <processor class="solr.UUIDUpdateProcessorFactory">
      <str name="fieldName">id</str>
    </processor>
    <processor class="solr.RunUpdateProcessorFactory" />
</updateRequestProcessorChain>


Thank you Ahmet! In fact, I did not know that the
updateRequestProcessorChain needed to be defined in solrconfig.xml and
I had tried to define it in schema.xml. I don't have access to
solrconfig.xml (I am using Websolr) but I will contact them about
adding it.

Thank you.

--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

Reply via email to