lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <yo...@lucidimagination.com>
Subject Re: Invoke "expungeDeletes" using SolrJ's SolrServer.commit()
Date Fri, 02 Oct 2009 21:24:37 GMT
You can always add arbitrary parameters to an update request:

    UpdateRequest ureq = new UpdateRequest();
    ureq.add(doc);
    ureq.setParam("expungeDeletes","true");
    NamedList<Object> rsp = server.request(ureq);


-Yonik
http://www.lucidimagination.com


On Fri, Oct 2, 2009 at 4:05 PM, Jibo John <jibojohn@mac.com> wrote:
> Hello,
>
> I know I can invoke expungeDeletes using updatehandler  ( curl update -F
> stream.body=' <commit expungeDeletes="true"/>' ), however, I was wondering
> if it is possible to invoke it using SolrJ.
>
> It looks like, currently, there are no SolrServer.commit(..) methods that I
> can use for this purpose.
>
> Any input will be helpful.
>
>
> Thanks,
> -Jibo
>
>
>

Mime
View raw message