lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: Deleted documents appearing in facet fields
Date Thu, 03 Jun 2010 13:17:27 GMT
> 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 


      

Mime
View raw message