lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "UniqueKey" by iorixxx
Date Sat, 01 Sep 2012 01:07:34 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "UniqueKey" page has been changed by iorixxx:
http://wiki.apache.org/solr/UniqueKey?action=diff&rev1=10&rev2=11

Comment:
add field definition and give link to jira issue

  }}}
   in Solr 4, this field must be populated via solr.UUIDUpdateProcessorFactory.
   {{{
+  <field name="id" type="uuid" indexed="true" stored="true" required="true"/>
+ }}}
+  {{{
    <updateRequestProcessorChain name="uuid">
      <processor class="solr.UUIDUpdateProcessorFactory">
        <str name="fieldName">id</str>
@@ -53, +56 @@

      <processor class="solr.RunUpdateProcessorFactory" />
    </updateRequestProcessorChain>
  }}}
-  . Due to low level changes to support SolrCloud, the uniqueKey field can no longer be populated
via <copyField/> or <field default=...> in the schema.xml. Users wishing to have
Solr automatically generate a uniqueKey value when adding documents should instead use an
instance of solr.UUIDUpdateProcessorFactory in their update processor chain.  See SOLR-2796
for more details.
+  . Due to low level changes to support SolrCloud, the uniqueKey field can no longer be populated
via <copyField/> or <field default=...> in the schema.xml. Users wishing to have
Solr automatically generate a uniqueKey value when adding documents should instead use an
instance of solr.UUIDUpdateProcessorFactory in their update processor chain. See [[https://issues.apache.org/jira/browse/SOLR-2796|SOLR-2796]]
for more details.
-  .
+  
   . However, in Solr 3 it can be used as
   {{{
   <field name="id" type="uuid" indexed="true" stored="true" default="NEW"/>

Mime
View raw message