You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Cassandra Targett (JIRA)" <ji...@apache.org> on 2018/01/10 21:02:00 UTC
[jira] [Closed] (SOLR-4673) semanticsMode consistency acts like
classic-consistency-hybrid
[ https://issues.apache.org/jira/browse/SOLR-4673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cassandra Targett closed SOLR-4673.
-----------------------------------
> semanticsMode consistency acts like classic-consistency-hybrid
> --------------------------------------------------------------
>
> Key: SOLR-4673
> URL: https://issues.apache.org/jira/browse/SOLR-4673
> Project: Solr
> Issue Type: Bug
> Components: update
> Affects Versions: 4.1
> Reporter: Sam Kass
> Labels: concurrency, optimistic
>
> Code like the following, run with semanticsMode set to "consistency", should fail on the second doc. Instead, it's acting like classic-consistency-hybrid, where it treats the second doc as if it should always overwrite. (Going by docs in http://wiki.apache.org/solr/Per%20Steffensen/Update%20semantics as it's the only place where this feature added 2 releases ago is as yet documented.)
> {quote}
> String id = UUID.randomUUID().toString();
> SolrInputDocument docA = new SolrInputDocument();
> docA.addField("id", id);
> docA.addField("_version_", -1);
> SolrInputDocument docB = new SolrInputDocument();
> docB.addField("id", id);
> // intentionally omit _version_
> solrServer.add(docA);
> solrServer.add(docB);
> {quote}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org