lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Long <lon...@gmail.com>
Subject Rollback w/ Atomic Update
Date Tue, 13 Dec 2016 15:36:46 GMT
We've noticed that partial updates are not rolling back with subsequent
commits based on the same document id. Our only success in mitigating this
issue has been to issue an empty commit immediately following the rollback.
I've included an example below showing the partial updates unexpected
results. We are currently using SolrJ 4.8.1 with the default deletion policy
and auto commits disabled in the configuration. Any help would be greatly
appreciated in better understanding this scenario.

/update?commit=true (initial add)
--------------------------------
[
  {
    "id": "12345",
    "createdBy_t": "John Someone"
  }
]

/update
--------
[
  {
    "id": "12345",
    "favColors_txt": { "set": ["blue", "green"] }
  }
]

/update?rollback=true
---------------------
[]

/update?commit=true
--------------------
[
  {
    "id": "12345",
    "cityBorn_t": { "add": "Charleston" }
  }
]

/select?q=id:12345
------------------
[
  {
    "id": "12345",
    "createdBy_t": "John Someone",
    "favColors_txt": ["blue", "green"],
    "cityBorn_t": "Charleston"
  }
]



--
View this message in context: http://lucene.472066.n3.nabble.com/Rollback-w-Atomic-Update-tp4309550.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message