Hi Bernd, I guess it is not exposed in Solrj. Maybe for good reason - it is rarely good to call it. You might better set reclaimDeletesWeight in your merge config and keep number of deleted docs under control that way.
Regards, Emir -- Monitoring - Log Management - Alerting - Anomaly Detection Solr & Elasticsearch Consulting Support Training - http://sematext.com/ > On 4 Oct 2017, at 14:53, Bernd Fehling <bernd.fehl...@uni-bielefeld.de> wrote: > > Hi Emir, > > can you point out which commit you are using for expungeDeletes true/false? > My commit has only > commit(String collection, boolean waitFlush, boolean waitSearcher, boolean > softCommit) > > Or is expungeDeletes true/false a special combination of the boolean > parameters? > > Regards, Bernd > > > Am 04.10.2017 um 13:27 schrieb Emir Arnautović: >> 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