You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jibo John <ji...@mac.com> on 2009/10/02 22:05:06 UTC
Invoke "expungeDeletes" using SolrJ's SolrServer.commit()
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
Re: Invoke "expungeDeletes" using SolrJ's SolrServer.commit()
Posted by Jibo John <ji...@mac.com>.
Created jira issue https://issues.apache.org/jira/browse/SOLR-1487
Thanks,
-Jibo
On Oct 2, 2009, at 2:17 PM, Shalin Shekhar Mangar wrote:
> On Sat, Oct 3, 2009 at 1:35 AM, Jibo John <ji...@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.
>>
>>
> You are right. Please create an issue. We need this in 1.4
>
> --
> Regards,
> Shalin Shekhar Mangar.
Re: Invoke "expungeDeletes" using SolrJ's SolrServer.commit()
Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Sat, Oct 3, 2009 at 1:35 AM, Jibo John <ji...@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.
>
>
You are right. Please create an issue. We need this in 1.4
--
Regards,
Shalin Shekhar Mangar.
Re: Invoke "expungeDeletes" using SolrJ's SolrServer.commit()
Posted by Yonik Seeley <yo...@lucidimagination.com>.
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 <ji...@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
>
>
>