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 "Per Steffensen/Update semantics" by Per Steffensen
Date Mon, 05 Mar 2012 14:15:15 GMT
Dear Wiki user,

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

The "Per Steffensen/Update semantics" page has been changed by Per Steffensen:
http://wiki.apache.org/solr/Per%20Steffensen/Update%20semantics?action=diff&rev1=3&rev2=4

Comment:
Requirements

  
  == Using it ==
  
+ This section describes how to use the feature as a Solr client.
+ 
  === Requirements ===
-  * uniqueKey field
+ 
+ To use "semantics=db-insert", "semantics=db-update" or "semantics=db-update-version-control"
there is a few requirements to you Solr schema and configuration.
+ 
+  * You need to have a uniqueKey-field in your schema. E.g. in schema.xml:
+ {{{#!xml
+  <field name="id" type="string" indexed="true" stored="true" required="true"/>
+  <uniqueKey>id</uniqueKey>
+ }}}
+  * You need to have a "_version_"-field in your schema. In schema.xml:
+ {{{#!xml
+  <field name="_version_" type="long" indexed="true" stored="true" />
+ }}}
+  * You need to use DirectUpdateHandler2 as your update-handler with updateLog enabled. In
solrconfig.xml:
+ {{{#!xml
+  <updateHandler class="solr.DirectUpdateHandler2">
+   <updateLog enable="${enable.update.log:false}">
+    <str name="dir">${solr.data.dir:}</str> 
-  * updateLog
+   </updateLog>
-  * _version_ field
+  </updateHandler>
+ }}}
  
  === HTTP requests ===
  === SolrJ ===

Mime
View raw message