Ahmet - this would be a good one to genericize on the SolrJ wiki.

It seems there is a lot of confusion about SolrJ, where users of it often don't think they can make requests to Solr like you see URL examples of, but of course they can make requests to any request handler as you've shown.

        Erik

On Jun 3, 2010, at 9:17 AM, Ahmet Arslan wrote:

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