lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: UUIDField uniqueKey with default="NEW"
Date Sat, 01 Sep 2012 00:33:02 GMT
> :     <processor
> class="solr.DefaultValueUpdateProcessorFactory">
> :       <str
> name="fieldName">uniqueKey</str>
> :       <str
> name="value">NEW</str>
> :     </processor>    
> 
> ...that approach won't work, it still relies on the
> UUIDField class 
> accepting "NEW" as input to generate a new key, and that is
> no longer 
> supported -- it happens to "late" in the processing for it
> to be used as 
> the unique key)

I tested this approach (At revision 1379678) and it seems working. I can see generated values.
e.g. <str name="uniqueKey">a259aa91-353f-4824-9f68-01837b721cf7</str>


> you may want to primarily describe the
> UUIDUpdateProcessorFactory as 
> how to generate a UUID for new documents, and then as a
> closing comment 
> mention that in Solr 3, the default="NEW" approach can be
> used instead.

Thanks for the pointer, I will try do it.

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


Mime
View raw message