Optimistic Locking with Riak Search / is _version_ required in schema.xml?

David James davidcjames at gmail.com
Thu Aug 7 17:46:32 EDT 2014


Hello,

A few questions:

   - Is _version_ required?
   - I see SolrCloud mentioned in some documentation (see below)? Does Riak
   Search use it?
   - How does Riak Search handle optimistic locking?

See this comment on the default_schema.xml on Github:

<!-- TODO: is this needed? -->
<field name="_version_" type="long" indexed="true" stored="true"/>

https://raw.githubusercontent.com/basho/yokozuna/develop/priv/default_schema.xml

Thanks,
David

P.S. Per https://wiki.apache.org/solr/SchemaXml
Recommended fields

While these fields aren't strictly mandatory (Solr will run if you remove
them fully), Bad Things happen in some situations if they aren't defined.
We recommend that you leave these fields alone. If you don't use them,
there's no appreciable penalty.

   -

   id - Almost all Solr installations have this field defined as the
   <uniqueKey> (see below).
   -

   _version_ [image: <!>] Solr4.0 <https://wiki.apache.org/solr/Solr4.0> -
   This field is used for optimistic locking in SolrCloud
   <http://wiki.apache.org/solr/SolrCloud> and it enables Real Time Get
   <http://wiki.apache.org/solr/RealTimeGet>. If you remove it you must
   also remove the transaction logging from solrconfig.xml, see Real Time
   Get <http://wiki.apache.org/solr/RealTimeGet>.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20140807/7f401bce/attachment.html>


More information about the riak-users mailing list