Hi Bernd, When it comes to updating, it does not exist because indexed documents are not updatable - you can add new document with the same id and old one will be flagged as deleted. No need to delete explicitly.
When it comes to expungeDeletes - that is a flag that can be set when committing. HTH, Emir -- Monitoring - Log Management - Alerting - Anomaly Detection Solr & Elasticsearch Consulting Support Training - http://sematext.com/ > On 4 Oct 2017, at 10:38, Bernd Fehling <bernd.fehl...@uni-bielefeld.de> wrote: > > A simple question about solrj (Solr 6.4.2), > > how to update documents with expungeDeletes true/false? > > In org.apache.solr.client.solrj.SolrClient there are many add, > commit, delete, optimize, ... but no "update". > > What is the best way to "update"? > - just "add" the same docid with new content as update? > - first "deleteById" and then "add"? > - anything else...? > > And how accomplish "expungeDeletes" true/false ? > > Thanks, Bernd