> Hi Ahmet,
>               but i use
> solrj to commit documents. and there is no commit
> method which allows you to mention expungeDeletes.
> 

Alternatively you can do it with SolrQuery.

final SolrQuery query = new SolrQuery();
query.set("qt", "/update");
query.set("commit", true);
query.set("expungeDeletes", true);
System.out.println(SolrServer.query(query));

You can verify it from /admin/stats.jsp#update  e.g. expungeDeletes : 1 



Reply via email to